Fixed internal message
This commit is contained in:
parent
71d5e6b232
commit
331a6b66be
|
@ -1495,7 +1495,7 @@ bool CheckUninitVar::checkScopeForVariable(const Scope* scope, const Token *tok,
|
||||||
*alloc = true;
|
*alloc = true;
|
||||||
continue;
|
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) {
|
if (alloc) {
|
||||||
*alloc = true;
|
*alloc = true;
|
||||||
if (var.typeScope() && var.typeScope()->numConstructors > 0)
|
if (var.typeScope() && var.typeScope()->numConstructors > 0)
|
||||||
|
|
Loading…
Reference in New Issue