summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
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;