diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-07 20:38:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-24 00:08:35 +0300 |
commit | d1590377de1141144d59ca1160de2822177f6f2a (patch) | |
tree | a368b251dedc7164cadbfe459de4cf5c983acf98 /src/gui/theme.cpp | |
parent | 65422e722cfe0616c65498c71aa0651857dcc49a (diff) | |
download | manaplus-d1590377de1141144d59ca1160de2822177f6f2a.tar.gz manaplus-d1590377de1141144d59ca1160de2822177f6f2a.tar.bz2 manaplus-d1590377de1141144d59ca1160de2822177f6f2a.tar.xz manaplus-d1590377de1141144d59ca1160de2822177f6f2a.zip |
Add support for tinyxml2 for reading / writing xml files.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 2d33d36e7..94826e537 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -406,7 +406,7 @@ Skin *Theme::readSkin(const std::string &filename, const bool full) SkipError_true); if (!doc) return nullptr; - const XmlNodePtr rootNode = doc->rootNode(); + XmlNodeConstPtr rootNode = doc->rootNode(); if (!rootNode || !xmlNameEqual(rootNode, "skinset")) { doc->decRef(); @@ -1011,7 +1011,7 @@ void Theme::loadColors(std::string file) SkipError_false); if (!doc) return; - const XmlNodePtrConst root = doc->rootNode(); + XmlNodeConstPtrConst root = doc->rootNode(); if (!root || !xmlNameEqual(root, "colors")) { @@ -1220,7 +1220,7 @@ ThemeInfo *Theme::loadInfo(const std::string &themeName) SkipError_false); if (!doc) return nullptr; - const XmlNodePtrConst rootNode = doc->rootNode(); + XmlNodeConstPtrConst rootNode = doc->rootNode(); if (!rootNode || !xmlNameEqual(rootNode, "info")) { |