Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2017-07-29 11:58:00 +02:00
parent aa35462add
commit abf525e46d
2 changed files with 1 additions and 3 deletions

View File

@ -85,7 +85,7 @@ static const Token *skipMembers(const Token *tok)
return tok;
}
bool CheckStl::isIterator(const Variable *var) const
static bool isIterator(const Variable *var)
{
// Check that its an iterator
if (!var || !var->isLocal() || !Token::Match(var->typeEndToken(), "iterator|const_iterator|reverse_iterator|const_reverse_iterator|auto"))

View File

@ -162,8 +162,6 @@ public:
void readingEmptyStlContainer();
private:
bool isIterator(const Variable *var) const;
void readingEmptyStlContainer_parseUsage(const Token* tok, const Library::Container* container, std::map<unsigned int, const Library::Container*>& empty, bool noerror);
void missingComparisonError(const Token *incrementToken1, const Token *incrementToken2);