Fix tested auto_ptr false positive.

This commit is contained in:
Benjamin Wolsey 2011-07-20 08:11:35 +02:00
parent c983608d88
commit e6d8f3fb73
1 changed files with 4 additions and 1 deletions

View File

@ -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();