Fixed internal warnings

This commit is contained in:
PKEuS 2016-10-08 11:34:25 +02:00
parent 9f1b70fa04
commit e1a21a8bb1
1 changed files with 3 additions and 3 deletions

View File

@ -662,7 +662,7 @@ bool CheckUninitVar::checkScopeForVariable(const Token *tok, const Variable& var
// array new // array new
if (Token::Match(tok->next(), "= new %type% [")) { if (Token::Match(tok->next(), "= new %type% [")) {
const Token* tokClosingBracket=tok->tokAt(4)->link(); const Token* tokClosingBracket=tok->linkAt(4);
// array new with initialization // array new with initialization
if (tokClosingBracket && Token::simpleMatch(tokClosingBracket->next(), "( )")) if (tokClosingBracket && Token::simpleMatch(tokClosingBracket->next(), "( )"))
return true; return true;