fix two internal warnings:

[lib/checkuninitvar.cpp:1668]: (style) Call to 'Token::tokAt()' followed by 'Token::str()' can be simplified.
[lib/checkuninitvar.cpp:1669]: (style) Call to 'Token::tokAt()' followed by 'Token::str()' can be simplified.
This commit is contained in:
Matthias Krüger 2014-12-17 18:27:41 +01:00
parent 2e45df3b72
commit cc7f69da54
1 changed files with 2 additions and 2 deletions

View File

@ -1665,8 +1665,8 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, bool all
return true;
// code like: return foo( variable
if (vartok->tokAt(-3) && vartok->tokAt(-3)->str() == "return"
&& vartok->tokAt(-1) && vartok->tokAt(-1)->str() == "(")
if (vartok->tokAt(-3) && vartok->strAt(-3) == "return"
&& vartok->tokAt(-1) && vartok->strAt(-1) == "(")
return true;
// Passing variable to typeof/__alignof__