From b2ac4def24379db588ffa52ca63676710f18b4fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Mar 2011 00:27:45 +0200 Subject: Fix code style and add small optimisations. --- src/playerrelations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/playerrelations.cpp') 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 * PlayerRelationsManager::getPlayerIgnoreStrategies() { - if (mIgnoreStrategies.size() == 0) + if (mIgnoreStrategies.empty()) { // not initialised yet? mIgnoreStrategies.push_back(new PIS_emote(FIRST_IGNORE_EMOTE, -- cgit v1.2.3-70-g09d2