summaryrefslogtreecommitdiff
path: root/src/playerrelations.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/playerrelations.cpp
parentf4792bc06f21335fc2d1171d937ea7645ca0c253 (diff)
downloadmv-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.gz
mv-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.bz2
mv-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.xz
mv-b2ac4def24379db588ffa52ca63676710f18b4fc.zip
Fix code style and add small optimisations.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r--src/playerrelations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp
index 9259ae034..91fec9947 100644
--- a/src/playerrelations.cpp
+++ b/src/playerrelations.cpp
@@ -477,7 +477,7 @@ public:
std::vector<PlayerIgnoreStrategy *> *
PlayerRelationsManager::getPlayerIgnoreStrategies()
{
- if (mIgnoreStrategies.size() == 0)
+ if (mIgnoreStrategies.empty())
{
// not initialised yet?
mIgnoreStrategies.push_back(new PIS_emote(FIRST_IGNORE_EMOTE,