summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-25 13:48:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-25 13:48:24 +0300
commit6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (patch)
treedf4a3e32b8ad9e77d894280966a0066f4aef0a94 /src/gui/theme.cpp
parent9a970ba6bc80938b56f3ba731bf4614b40ba573d (diff)
downloadplus-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.gz
plus-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.bz2
plus-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.xz
plus-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.zip
improve a bit strings declaration.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp6
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"))