From 803b6afd00b0e3574b40b866f21a0d3d01f6dc4d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 00:01:56 +0300 Subject: Improve string usage in other files. --- src/gui/minimap.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/minimap.cpp') diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index d35a29088..c9362471f 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -156,8 +156,8 @@ void Minimap::setMap(const Map *const map) } else { - std::string tempname = paths.getStringValue("minimaps") - + map->getFilename() + ".png"; + std::string tempname = paths.getStringValue("minimaps").append( + map->getFilename()).append(".png"); ResourceManager *const resman = ResourceManager::getInstance(); minimapName = map->getProperty("minimap"); @@ -167,7 +167,8 @@ void Minimap::setMap(const Map *const map) if (minimapName.empty()) { - tempname = "graphics/minimaps/" + map->getFilename() + ".png"; + tempname = std::string("graphics/minimaps/").append( + map->getFilename()).append(".png"); if (resman->exists(tempname)) minimapName = tempname; } -- cgit v1.2.3-70-g09d2