Merge pull request #562 from simartin/restore_build_osx

Restore build on Mac OS X
This commit is contained in:
Daniel Marjamäki 2015-03-20 06:28:42 +01:00
commit dc5bdf6eb5
1 changed files with 1 additions and 1 deletions

View File

@ -1255,7 +1255,7 @@ void CheckStl::checkAutoPointer()
}
if (Token::Match(tok3, "( %var%")) {
std::map<unsigned int, const std::string>::const_iterator it = mallocVarId.find(tok3->next()->varId());
if (it != mallocVarId.cend()) {
if (it != mallocVarId.end()) {
// pointer on the memory allocated by malloc used in the auto pointer constructor -> error
autoPointerMallocError(tok2->next(), it->second);
}