summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 00:01:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 00:01:56 +0300
commit803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (patch)
tree8a55ef881f1eaac4d216b3f5d2c4605eb520070d /src/gui/sdlfont.cpp
parent8478d540748edccf36dc9bda5f0c3de0aa7bf763 (diff)
downloadManaVerse-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.gz
ManaVerse-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.bz2
ManaVerse-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.xz
ManaVerse-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.zip
Improve string usage in other files.
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp
index 404e1d319..8b53cafe1 100644
--- a/src/gui/sdlfont.cpp
+++ b/src/gui/sdlfont.cpp
@@ -295,7 +295,8 @@ void SDLFont::drawString(gcn::Graphics *const graphics,
#endif
}
#ifdef DEBUG_FONT
- logger->log("drawString: " + text + ", iterations: " + toString(cnt));
+ logger->log(std::string("drawString: ").append(text).append(
+ ", iterations: ").append(toString(cnt)));
#endif
// Surface not found
@@ -382,7 +383,8 @@ int SDLFont::getWidth(const std::string &text) const
}
#ifdef DEBUG_FONT
- logger->log("getWidth: " + text + ", iterations: " + toString(cnt));
+ logger->log(std::string("getWidth: ").append(text).append(
+ ", iterations: ").append(toString(cnt)));
#endif
int w, h;