testrunner: fix -Wshadow warning.

warning was:

test/testsimplifytemplate.cpp: In member function ‘int TestSimplifyTemplate::templateNamePositionHelper(const char*, unsigned int)’:
test/testsimplifytemplate.cpp:1170:22: warning: declaration of ‘tok’ shadows a member of 'this' [-Wshadow]
         const Token *tok = tokenizer.tokens();
                      ^
This commit is contained in:
Matthias Krüger 2015-04-03 12:19:08 +02:00
parent aacd9b9f6b
commit 77e22da7fe
1 changed files with 3 additions and 3 deletions

View File

@ -1168,10 +1168,10 @@ private:
std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp", "", true);
const Token *tok = tokenizer.tokens();
const Token *_tok = tokenizer.tokens();
for (unsigned i = 0 ; i < offset ; ++i)
tok = tok->next();
return TemplateSimplifier::getTemplateNamePosition(tok);
_tok = _tok->next();
return TemplateSimplifier::getTemplateNamePosition(_tok);
}
void templateNamePosition() {