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:
parent
4086127144
commit
2587ebf189
|
@ -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