astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2020-06-27 07:34:48 +02:00
parent 1ad70bbeb8
commit 0352a5d32f
1 changed files with 1 additions and 1 deletions

View File

@ -1368,7 +1368,7 @@ void CheckOther::checkConstVariable()
if (Function::returnsReference(function)) { if (Function::returnsReference(function)) {
std::vector<const Token*> returns = Function::findReturns(function); std::vector<const Token*> returns = Function::findReturns(function);
if (std::any_of(returns.begin(), returns.end(), [&](const Token* retTok) { if (std::any_of(returns.begin(), returns.end(), [&](const Token* retTok) {
if (retTok->varId() == var->declarationId()) if (retTok->varId() == var->declarationId())
return true; return true;
while (retTok && retTok->isCast()) while (retTok && retTok->isCast())
retTok = retTok->astOperand2(); retTok = retTok->astOperand2();