From 8822cbb713868043f984da403a4d0c13ec2c89e2 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Mon, 1 Jun 2009 02:04:29 +0700 Subject: [PATCH] src/tokenize.cpp(unwantedWords): propagate const modifier. No functional change. --- src/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 630b1d740..5e5f94ee2 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -1054,7 +1054,7 @@ void Tokenizer::simplifyTokenList() } // 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 (unsigned ui = 0; ui < sizeof(unwantedWords) / sizeof(unwantedWords[0]) && tok->next(); ui++)