Restore build on Mac OS X on which we're force to use GNU's STL, that does not have cend()...

This commit is contained in:
Simon Martin 2015-03-19 20:25:57 +01:00
parent 4086127144
commit 2587ebf189
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);
}