diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index e0b9e95b6..f22a82283 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -743,9 +743,9 @@ bool Preprocessor::validateCfg(const std::string &cfg, const std::list defines; splitcfg(cfg, defines, std::string()); for (std::list::const_iterator defineIt = defines.begin(); defineIt != defines.end(); ++defineIt) { - if (defineIt->find("=") != std::string::npos) + if (defineIt->find('=') != std::string::npos) continue; - const std::string macroName(defineIt->substr(0, defineIt->find("("))); + const std::string macroName(defineIt->substr(0, defineIt->find('('))); for (std::list::const_iterator usageIt = macroUsageList.begin(); usageIt != macroUsageList.end(); ++usageIt) { const simplecpp::MacroUsage &mu = *usageIt; if (mu.macroName != macroName)