summaryrefslogtreecommitdiff
path: root/src/guichan/font.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-31 01:27:37 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-31 01:27:37 +0300
commit9d3b975bcb84ad1c61d628de2804751c0d0707dd (patch)
treefe7494b1ecd561a40dc96d088c77d69b6d4ce13e /src/guichan/font.cpp
parent1d0044cbc81e547ad688a295288910d58e1a3fb1 (diff)
downloadplus-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.gz
plus-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.bz2
plus-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.xz
plus-9d3b975bcb84ad1c61d628de2804751c0d0707dd.zip
Fix code style and missing members initialisations.
Diffstat (limited to 'src/guichan/font.cpp')
-rw-r--r--src/guichan/font.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/guichan/font.cpp b/src/guichan/font.cpp
index 5583cdb57..aa5924832 100644
--- a/src/guichan/font.cpp
+++ b/src/guichan/font.cpp
@@ -58,12 +58,10 @@ namespace gcn
for (i = 0; i < text.size(); ++i)
{
- size = getWidth(text.substr(0,i));
+ size = getWidth(text.substr(0, i));
if (size > x)
- {
return i;
- }
}
return text.size();