From d4febba47388979b26cd4680cb8a6f20e548e399 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 01:40:00 +0300 Subject: Improve string usage in other files. --- src/resources/itemdb.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/resources/itemdb.cpp') diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 5fd0da97b..befcd621e 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -323,8 +323,8 @@ void ItemDB::load() if (!value) continue; if (!effect.empty()) - effect += " / "; - effect += strprintf(gettext(fields[i][1]), value); + effect.append(" / "); + effect.append(strprintf(gettext(fields[i][1]), value)); } FOR_EACH (std::vector::const_iterator, it, extraStats) { @@ -332,13 +332,13 @@ void ItemDB::load() if (!value) continue; if (!effect.empty()) - effect += " / "; - effect += strprintf(it->format.c_str(), value); + effect.append(" / "); + effect.append(strprintf(it->format.c_str(), value)); } std::string temp = XML::langProperty(node, "effect", ""); if (!effect.empty() && !temp.empty()) - effect += " / "; - effect += temp; + effect.append(" / "); + effect.append(temp); itemInfo->setEffect(effect); for_each_xml_child_node(itemChild, node) -- cgit v1.2.3-60-g2f50