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/windows/equipmentwindow.cpp | |
parent | 65422e722cfe0616c65498c71aa0651857dcc49a (diff) | |
download | manaverse-d1590377de1141144d59ca1160de2822177f6f2a.tar.gz manaverse-d1590377de1141144d59ca1160de2822177f6f2a.tar.bz2 manaverse-d1590377de1141144d59ca1160de2822177f6f2a.tar.xz manaverse-d1590377de1141144d59ca1160de2822177f6f2a.zip |
Add support for tinyxml2 for reading / writing xml files.
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r-- | src/gui/windows/equipmentwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index 1910bb8e1..c0ed8b5d4 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -630,7 +630,7 @@ void EquipmentWindow::fillBoxes() paths.getStringValue("equipmentWindowFile"), UseVirtFs_true, SkipError_false); - const XmlNodePtr root = doc->rootNode(); + XmlNodeConstPtr root = doc->rootNode(); if (!root) { delete doc; @@ -666,7 +666,7 @@ void EquipmentWindow::addDefaultPage() } } -void EquipmentWindow::loadPage(const XmlNodePtr node) +void EquipmentWindow::loadPage(XmlNodeConstPtr node) { if (!node) return; @@ -682,7 +682,7 @@ void EquipmentWindow::loadPage(const XmlNodePtr node) } } -void EquipmentWindow::loadPlayerBox(const XmlNodePtr playerBoxNode, +void EquipmentWindow::loadPlayerBox(XmlNodeConstPtr playerBoxNode, const int page) { EquipmentPage *const data = mPages[page]; @@ -692,7 +692,7 @@ void EquipmentWindow::loadPlayerBox(const XmlNodePtr playerBoxNode, data->height = XML::getProperty(playerBoxNode, "height", 168); } -void EquipmentWindow::loadSlot(const XmlNodePtr slotNode, +void EquipmentWindow::loadSlot(XmlNodeConstPtr slotNode, const ImageSet *const imageset, const int page) { @@ -739,7 +739,7 @@ void EquipmentWindow::prepareSlotNames() XML::Document doc(paths.getStringValue("equipmentSlotsFile"), UseVirtFs_true, SkipError_false); - const XmlNodePtrConst root = doc.rootNode(); + XmlNodeConstPtrConst root = doc.rootNode(); if (!root) return; |