summaryrefslogtreecommitdiff
path: root/src/guichan/defaultfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-23 02:46:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-23 02:48:43 +0300
commita69a87c5a81ddbf25a25c5549259da550d207bda (patch)
tree59f1a919b327912395ab84bab1684118bf0379be /src/guichan/defaultfont.cpp
parente646f2fae3f323b7faa26aa9540524d1765211ee (diff)
downloadplus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.gz
plus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.bz2
plus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.xz
plus-a69a87c5a81ddbf25a25c5549259da550d207bda.zip
Improve a bit iterators again.
Diffstat (limited to 'src/guichan/defaultfont.cpp')
-rw-r--r--src/guichan/defaultfont.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/guichan/defaultfont.cpp b/src/guichan/defaultfont.cpp
index 70901bc8e..feeb91001 100644
--- a/src/guichan/defaultfont.cpp
+++ b/src/guichan/defaultfont.cpp
@@ -78,9 +78,7 @@ namespace gcn
void DefaultFont::drawString(Graphics* graphics, const std::string& text,
int x, int y)
{
- unsigned int i;
-
- for (i = 0; i< text.size(); ++i)
+ for (unsigned int i = 0; i< text.size(); ++i)
{
drawGlyph(graphics, text.at(i), x, y);
x += getWidth(text);