summaryrefslogtreecommitdiff
path: root/src/gui/whoisonline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-19 00:27:45 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-19 00:27:45 +0200
commitb2ac4def24379db588ffa52ca63676710f18b4fc (patch)
tree09a76cb672d032cd6b8f41fd3f5afc6c3836839f /src/gui/whoisonline.cpp
parentf4792bc06f21335fc2d1171d937ea7645ca0c253 (diff)
downloadplus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.gz
plus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.bz2
plus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.xz
plus-b2ac4def24379db588ffa52ca63676710f18b4fc.zip
Fix code style and add small optimisations.
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r--src/gui/whoisonline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index f64bf383e..c4d9e92a3 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -480,7 +480,7 @@ void WhoIsOnline::logic()
mUpdateButton->setEnabled(true);
mUpdateTimer = 0;
updateSize();
- if (mOnlinePlayers.size() > 0 && chatWindow)
+ if (!mOnlinePlayers.empty() && chatWindow)
chatWindow->updateOnline(mOnlinePlayers);
}
break;