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:
parent
aacd9b9f6b
commit
77e22da7fe
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue