Merge pull request #562 from simartin/restore_build_osx
Restore build on Mac OS X
This commit is contained in:
commit
dc5bdf6eb5
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue