diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 931b0b0609f..2e4d3e05270 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -3359,7 +3359,7 @@ ExprUsage getExprUsage(const Token* tok, int indirect, const Settings* settings) return ExprUsage::NotUsed; if (Token::simpleMatch(parent, ":") && Token::simpleMatch(parent->astParent(), "?")) return getExprUsage(parent->astParent(), indirect, settings); - if(isUsedAsBool(tok, settings)) + if (isUsedAsBool(tok, settings)) return ExprUsage::NotUsed; } if (indirect == 0) {