testsymboldatabase: Improved constness of local variable.

This commit is contained in:
orbitcowboy 2015-12-15 13:29:58 +01:00
parent d93f2994d4
commit ad17a0d721
1 changed files with 1 additions and 1 deletions

View File

@ -3003,7 +3003,7 @@ private:
Tokenizer tokenizer(&settings, this);
std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp");
const Token *tok = Token::findsimplematch(tokenizer.tokens(),str);
const Token * const tok = Token::findsimplematch(tokenizer.tokens(),str);
return tok->valueType()->str();
}