src/tokenize.cpp(unwantedWords): propagate const modifier.

No functional change.
This commit is contained in:
Slava Semushin 2009-06-01 02:04:29 +07:00
parent 2120edb89b
commit 8822cbb713
1 changed files with 1 additions and 1 deletions

View File

@ -1054,7 +1054,7 @@ void Tokenizer::simplifyTokenList()
} }
// Remove unwanted keywords // Remove unwanted keywords
static const char* unwantedWords[] = { "unsigned", "unlikely", "likely" }; static const char * const unwantedWords[] = { "unsigned", "unlikely", "likely" };
for (Token *tok = _tokens; tok; tok = tok->next()) for (Token *tok = _tokens; tok; tok = tok->next())
{ {
for (unsigned ui = 0; ui < sizeof(unwantedWords) / sizeof(unwantedWords[0]) && tok->next(); ui++) for (unsigned ui = 0; ui < sizeof(unwantedWords) / sizeof(unwantedWords[0]) && tok->next(); ui++)