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/mapreader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/mapreader.cpp') diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index cd0b68163..ec7651745 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -71,7 +71,7 @@ static std::string resolveRelativePath(std::string base, std::string relative) // Re-add trailing slash, if needed if (!base.empty() && base[base.length() - 1] != '/') - base += '/'; + base.append("/"); return base + relative; } @@ -264,7 +264,7 @@ Map *MapReader::readMap(XmlNodePtr node, const std::string &path) const bool showWarps = config.getBoolValue("warpParticle"); const std::string warpPath = paths.getStringValue("particles") - + paths.getStringValue("portalEffectFile"); + .append(paths.getStringValue("portalEffectFile")); if (tilew < 0 || tileh < 0) { @@ -862,6 +862,6 @@ void MapReader::updateMusic(Map *const map) const size_t p = name.rfind("."); if (p != std::string::npos) name = name.substr(0, p); - name += ".ogg"; + name.append(".ogg"); map->setProperty("music", name); } -- cgit v1.2.3-70-g09d2