summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 01:40:00 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 01:40:00 +0300
commitd4febba47388979b26cd4680cb8a6f20e548e399 (patch)
tree2d520db672ed39b755e668828d27f0dd9d18ed6e /src/resources/mapreader.cpp
parent803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (diff)
downloadManaVerse-d4febba47388979b26cd4680cb8a6f20e548e399.tar.gz
ManaVerse-d4febba47388979b26cd4680cb8a6f20e548e399.tar.bz2
ManaVerse-d4febba47388979b26cd4680cb8a6f20e548e399.tar.xz
ManaVerse-d4febba47388979b26cd4680cb8a6f20e548e399.zip
Improve string usage in other files.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}