diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-21 22:44:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-21 22:45:15 +0300 |
commit | 42f47e483da19079a937c4801ca94bd62d8dc970 (patch) | |
tree | 56dc96737e01e04d54357ce7118de3a1f000c516 /src/configuration.cpp | |
parent | 2d8b9246c8003f1d32ba396bc19cc11bc5a595b2 (diff) | |
download | manaplus-42f47e483da19079a937c4801ca94bd62d8dc970.tar.gz manaplus-42f47e483da19079a937c4801ca94bd62d8dc970.tar.bz2 manaplus-42f47e483da19079a937c4801ca94bd62d8dc970.tar.xz manaplus-42f47e483da19079a937c4801ca94bd62d8dc970.zip |
Remove useless else.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index bc872b4d5..6e42304f6 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -297,8 +297,7 @@ bool ConfigurationObject::getValueBool(const std::string &key, const Options::const_iterator iter = mOptions.find(key); if (iter != mOptions.end()) return atoi(iter->second.c_str()) != 0 ? true : false; - else - return deflt; + return deflt; } unsigned ConfigurationObject::getValue(const std::string &key, @@ -887,10 +886,7 @@ void Configuration::write() BLOCK_END("Configuration::write") return; } - else - { - fclose(testFile); - } + fclose(testFile); XmlTextWriterPtr writer = XmlNewTextWriterFilename( mConfigPath.c_str(), 0); |