Fix tested auto_ptr false positive.
This commit is contained in:
parent
c983608d88
commit
e6d8f3fb73
|
@ -1150,7 +1150,10 @@ void CheckStl::checkAutoPointer()
|
|||
autoPointerArrayError(tok2->next());
|
||||
}
|
||||
}
|
||||
autoPtrVarId.insert(tok2->next()->varId());
|
||||
if (tok2->next()->varId())
|
||||
{
|
||||
autoPtrVarId.insert(tok2->next()->varId());
|
||||
}
|
||||
break;
|
||||
}
|
||||
tok2 = tok2->next();
|
||||
|
|
Loading…
Reference in New Issue