From 4f1e8bc5e725901b8cc3b78ecdfb8dcfb82737c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 4 Jan 2020 18:47:05 +0100 Subject: [PATCH] astyle formatting [ci skip] --- lib/checkcondition.cpp | 2 +- lib/checkother.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;