Fixed internal message

This commit is contained in:
PKEuS 2015-01-22 10:53:01 +01:00
parent 71d5e6b232
commit 331a6b66be
1 changed files with 1 additions and 1 deletions

View File

@ -1495,7 +1495,7 @@ bool CheckUninitVar::checkScopeForVariable(const Scope* scope, const Token *tok,
*alloc = true;
continue;
}
if (var.isPointer() && (var.typeStartToken()->isStandardType() || (var.type() && var.type()->needInitialization == Type::True)) && Token::Match(tok->next(), "= new")) {
if (var.isPointer() && (var.typeStartToken()->isStandardType() || (var.type() && var.type()->needInitialization == Type::True)) && Token::simpleMatch(tok->next(), "= new")) {
if (alloc) {
*alloc = true;
if (var.typeScope() && var.typeScope()->numConstructors > 0)