summaryrefslogtreecommitdiff
path: root/src/playerrelations.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-11 20:03:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-11 20:03:02 +0300
commit91fa2122a536770924bb2819bec4b79e76393d08 (patch)
tree93c0e191249b2158cf92a564630a4b16e9ccdcaa /src/playerrelations.cpp
parent1a524dc9468fe532bc060a73ef736a68687aadca (diff)
downloadmv-91fa2122a536770924bb2819bec4b79e76393d08.tar.gz
mv-91fa2122a536770924bb2819bec4b79e76393d08.tar.bz2
mv-91fa2122a536770924bb2819bec4b79e76393d08.tar.xz
mv-91fa2122a536770924bb2819bec4b79e76393d08.zip
Fix code style and small perfomance issues.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r--src/playerrelations.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp
index 549c3ca2d..5f696413b 100644
--- a/src/playerrelations.cpp
+++ b/src/playerrelations.cpp
@@ -152,7 +152,6 @@ void PlayerRelationsManager::clear()
removePlayer(*it);
}
delete names;
- names = nullptr;
}
static const char *const PERSIST_IGNORE_LIST = "persistent-player-list";
@@ -585,7 +584,7 @@ bool PlayerRelationsManager::isGoodName(Being *const being)
if (size < 3 || mRelations[name])
return true;
- bool status = checkName(name);
+ const bool status = checkName(name);
being->setGoodStatus(status ? 1 : 0);
return status;
}