From 7f0bc73e8e47158dcfbe45cfa349af6c070fb745 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 4 Jan 2013 03:17:52 +0100 Subject: [PATCH] Simple constification (needed by the match compiler) --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 439af6022..90a22b877 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -8745,7 +8745,7 @@ void Tokenizer::simplifyNamespaceStd() }; static const std::set stdFunctions(stdFunctions_, stdFunctions_+sizeof(stdFunctions_)/sizeof(*stdFunctions_)); - for (Token* tok = Token::findsimplematch(list.front(), "using namespace std ;"); tok; tok = tok->next()) { + for (const Token* tok = Token::findsimplematch(list.front(), "using namespace std ;"); tok; tok = tok->next()) { bool insert = false; if (Token::Match(tok, "%var% (") && !Token::Match(tok->previous(), ".|::") && stdFunctions.find(tok->str()) != stdFunctions.end()) insert = true;