diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 24e05c9c534..6ccc3d62fac 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -5234,8 +5234,6 @@ static void valueFlowAfterMove(TokenList& tokenlist, const SymbolDatabase& symbo if (endOfFunctionCall) { if (endOfFunctionCall->str() == ")") { Token* ternaryColon = endOfFunctionCall->link()->astParent(); - while (Token::simpleMatch(parent, "(")) - ternaryColon = ternaryColon->astParent(); if (Token::simpleMatch(ternaryColon, ":")) { endOfFunctionCall = ternaryColon->astOperand2(); if (Token::simpleMatch(endOfFunctionCall, "("))