summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-01 01:25:29 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-01 01:28:35 +0300
commitdde6e5de43ed2d50c02022042f68fa866779c15a (patch)
treebb80e7141bf3392621ae65e2b59fe50718400a82 /src
parent49012d867582a90ea2148454862750d4e4117e00 (diff)
downloadplus-dde6e5de43ed2d50c02022042f68fa866779c15a.tar.gz
plus-dde6e5de43ed2d50c02022042f68fa866779c15a.tar.bz2
plus-dde6e5de43ed2d50c02022042f68fa866779c15a.tar.xz
plus-dde6e5de43ed2d50c02022042f68fa866779c15a.zip
improve size() usage in botcheckerwindow.
Diffstat (limited to 'src')
-rw-r--r--src/gui/botcheckerwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/botcheckerwindow.cpp b/src/gui/botcheckerwindow.cpp
index 97e01b4b2..a18669da0 100644
--- a/src/gui/botcheckerwindow.cpp
+++ b/src/gui/botcheckerwindow.cpp
@@ -124,8 +124,9 @@ public:
}
const unsigned int curTime = cur_time;
+ const unsigned int sz = mPlayers.size();
// set up widgets
- for (unsigned int r = 0; r < mPlayers.size(); ++r)
+ for (unsigned int r = 0; r < sz; ++r)
{
if (!mPlayers.at(r))
continue;