From 2587ebf18930745fe9e6498d5abd75221c28c0e6 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Thu, 19 Mar 2015 20:25:57 +0100 Subject: [PATCH] Restore build on Mac OS X on which we're force to use GNU's STL, that does not have cend()... --- lib/checkstl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkstl.cpp b/lib/checkstl.cpp index 5c3016292..e15613d5d 100644 --- a/lib/checkstl.cpp +++ b/lib/checkstl.cpp @@ -1255,7 +1255,7 @@ void CheckStl::checkAutoPointer() } if (Token::Match(tok3, "( %var%")) { std::map::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); }