diff --git a/test/testsymboldatabase.cpp b/test/testsymboldatabase.cpp index 1a3f48a26..d04f74c3b 100644 --- a/test/testsymboldatabase.cpp +++ b/test/testsymboldatabase.cpp @@ -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(); }