summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 23:02:06 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 23:02:06 +0300
commit7e66a4606bb15d98197f71245fe191d03152ee5f (patch)
tree825022571cfb55d70f1ca3c142f79db3758fb72b /src/configuration.cpp
parenta61ac4664d55cddb18d2d861e76629bd07676129 (diff)
downloadmanaverse-7e66a4606bb15d98197f71245fe191d03152ee5f.tar.gz
manaverse-7e66a4606bb15d98197f71245fe191d03152ee5f.tar.bz2
manaverse-7e66a4606bb15d98197f71245fe191d03152ee5f.tar.xz
manaverse-7e66a4606bb15d98197f71245fe191d03152ee5f.zip
Improve some empty string checks.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index f70af1c3e..29d26f495 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -925,7 +925,7 @@ void Configuration::removeOldKeys()
mOptions.find(unusedKeys[2]) != mOptions.end())
{
int f = 0;
- while (unusedKeys[f] != "")
+ while (!unusedKeys[f].empty())
{
deleteKey(unusedKeys[f]);
logger->log("remove unused key: " + unusedKeys[f]);