diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-26 00:01:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-26 00:01:56 +0300 |
commit | 803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (patch) | |
tree | 8a55ef881f1eaac4d216b3f5d2c4605eb520070d /src/gui/sdlfont.cpp | |
parent | 8478d540748edccf36dc9bda5f0c3de0aa7bf763 (diff) | |
download | manaverse-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.cpp | 6 |
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; |