diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 06d3d8d85..b24e55751 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -188,7 +188,7 @@ int CppCheckExecutor::check(int argc, const char* const argv[]) unsigned int c = 0; for (std::map::const_iterator i = _files.begin(); i != _files.end(); ++i) { if (!_settings->library.markupFile(i->first) - || !_settings->library.processMarkupAfterCode(i->first)) { + || !_settings->library.processMarkupAfterCode(i->first)) { returnValue += cppCheck.check(i->first); processedsize += i->second; if (!settings._errorsOnly) diff --git a/lib/checkunusedfunctions.cpp b/lib/checkunusedfunctions.cpp index b12c9d48f..693f14641 100644 --- a/lib/checkunusedfunctions.cpp +++ b/lib/checkunusedfunctions.cpp @@ -110,7 +110,7 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const char Fi else if (!settings->library.iskeyword(FileName, markupVarToken->str())) { if (_functions.find(markupVarToken->str()) != _functions.end()) _functions[markupVarToken->str()].usedOtherFile = true; - else if (markupVarToken->next()->str() == "("){ + else if (markupVarToken->next()->str() == "(") { FunctionUsage &func = _functions[markupVarToken->str()]; func.filename = tokenizer.getSourceFilePath(); if (func.filename.empty() || func.filename == "+")