diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-23 02:46:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-23 02:48:43 +0300 |
commit | a69a87c5a81ddbf25a25c5549259da550d207bda (patch) | |
tree | 59f1a919b327912395ab84bab1684118bf0379be /src/guichan/defaultfont.cpp | |
parent | e646f2fae3f323b7faa26aa9540524d1765211ee (diff) | |
download | manaplus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.gz manaplus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.bz2 manaplus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.xz manaplus-a69a87c5a81ddbf25a25c5549259da550d207bda.zip |
Improve a bit iterators again.
Diffstat (limited to 'src/guichan/defaultfont.cpp')
-rw-r--r-- | src/guichan/defaultfont.cpp | 4 |
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); |