diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-25 13:48:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-25 13:48:24 +0300 |
commit | 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (patch) | |
tree | df4a3e32b8ad9e77d894280966a0066f4aef0a94 /src/gui/theme.cpp | |
parent | 9a970ba6bc80938b56f3ba731bf4614b40ba573d (diff) | |
download | manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.gz manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.bz2 manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.xz manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.zip |
improve a bit strings declaration.
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 21901e0a4..8f65b6671 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -292,7 +292,7 @@ Skin *Theme::load(const std::string &filename, const std::string &filename2, } else { // first use correct density images - const std::string endStr = "_" + mScreenDensity + ".xml"; + const std::string endStr("_" + mScreenDensity + ".xml"); std::string name = filename; if (findCutLast(name, ".xml")) skin = readSkin(name + endStr, full); @@ -1254,8 +1254,8 @@ ThemeInfo *Theme::loadInfo(const std::string &themeName) ThemeInfo *info = new ThemeInfo(); - const std::string fontSize2 = "fontSize_" + mScreenDensity; - const std::string npcfontSize2 = "npcfontSize_" + mScreenDensity; + const std::string fontSize2("fontSize_" + mScreenDensity); + const std::string npcfontSize2("npcfontSize_" + mScreenDensity); for_each_xml_child_node(infoNode, rootNode) { if (xmlNameEqual(infoNode, "name")) |