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