diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 5bb4c17d9..cde8df023 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -632,7 +632,7 @@ void CheckCondition::multiCondition2() [&varsInCond](const Token *cond) { if (cond->variable()) { const Variable *var = cond->variable(); - if(std::find(varsInCond.begin(), varsInCond.end(), var) == varsInCond.end()) + if (std::find(varsInCond.begin(), varsInCond.end(), var) == varsInCond.end()) varsInCond.push_back(var); } return ChildrenToVisit::op1_and_op2; diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 91763c6a8..e0858064e 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1299,7 +1299,7 @@ static bool isVariableMutableInInitializer(const Token* start, const Token * end const Token * memberTok = tok->astParent()->previous(); if (Token::Match(memberTok, "%var% (") && memberTok->variable()) { const Variable * memberVar = memberTok->variable(); - if(memberVar->isClass()) + if (memberVar->isClass()) //TODO: check if the called constructor could live with a const variable // pending that, assume the worst (that it can't) return true;