From a69a87c5a81ddbf25a25c5549259da550d207bda Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Jun 2012 02:46:01 +0300 Subject: Improve a bit iterators again. --- src/guichan/defaultfont.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/guichan/defaultfont.cpp') 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); -- cgit v1.2.3-70-g09d2