Fixed Cppcheck warning, condition is always true

This commit is contained in:
Daniel Marjamäki 2015-07-16 20:23:25 +02:00
parent a3fbad50cb
commit fa13179c68
1 changed files with 1 additions and 2 deletions

View File

@ -94,7 +94,6 @@ std::string Settings::addEnabled(const std::string &str)
return addEnabled(str.substr(prevPos));
}
bool handled = false;
if (str == "all") {
std::set<std::string>::const_iterator it;
for (it = id.begin(); it != id.end(); ++it) {
@ -108,7 +107,7 @@ std::string Settings::addEnabled(const std::string &str)
if (str == "information") {
_enabled.insert("missingInclude");
}
} else if (!handled) {
} else {
if (str.empty())
return std::string("cppcheck: --enable parameter is empty");
else