From 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 13:48:24 +0300 Subject: improve a bit strings declaration. --- src/gui/theme.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/theme.cpp') 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")) -- cgit v1.2.3-60-g2f50