aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index 52841c6..f4f8e9c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -264,8 +264,8 @@ int main(int argc, char *argv[])
for (const auto &xf : xmlFiles) {
if (xf[0] != '.') {
XMLDocument xmld;
- auto file = xmlFolder + xf;
- xmld.LoadFile(file.c_str());
+ auto file = (xmlFolder + xf).c_str();
+ xmld.LoadFile(file);
auto xmle = xmld.FirstChildElement("World");
@@ -285,7 +285,7 @@ int main(int argc, char *argv[])
xmle->DeleteAttribute("dindex");
xmle = xmle->NextSiblingElement();
}
- xmld.SaveFile(file.c_str(), false);
+ xmld.SaveFile(file, false);
}
}