Fixed internal warnings
This commit is contained in:
parent
9f1b70fa04
commit
e1a21a8bb1
|
@ -662,7 +662,7 @@ bool CheckUninitVar::checkScopeForVariable(const Token *tok, const Variable& var
|
|||
|
||||
// array new
|
||||
if (Token::Match(tok->next(), "= new %type% [")) {
|
||||
const Token* tokClosingBracket=tok->tokAt(4)->link();
|
||||
const Token* tokClosingBracket=tok->linkAt(4);
|
||||
// array new with initialization
|
||||
if (tokClosingBracket && Token::simpleMatch(tokClosingBracket->next(), "( )"))
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue