Code cleanup. Fix gcc warning.
This commit is contained in:
parent
9029fff59d
commit
3c207da910
|
@ -188,11 +188,9 @@ struct ReverseTraversal {
|
|||
break;
|
||||
valueFlowGenericForward(condTok, analyzer, settings);
|
||||
}
|
||||
Token* thenEnd = nullptr;
|
||||
Token* elseEnd = nullptr;
|
||||
Token* thenEnd;
|
||||
const bool hasElse = Token::simpleMatch(tok->link()->tokAt(-2), "} else {");
|
||||
if (hasElse) {
|
||||
elseEnd = tok;
|
||||
thenEnd = tok->link()->tokAt(-2);
|
||||
} else {
|
||||
thenEnd = tok;
|
||||
|
|
Loading…
Reference in New Issue