Fixed 'tokAt(-2)->link() -> linkAt(-2)' thanks to cppcheck internal check.

This commit is contained in:
Edoardo Prezioso 2012-10-13 14:59:34 +02:00
parent 64b4960acc
commit 8324de1dc0
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ private:
// variable is assigned like: "( %var% ) .. =" // variable is assigned like: "( %var% ) .. ="
if (Token::Match(tok.previous(), "( %var% )") && tok2 && tok2->str() == "=") if (Token::Match(tok.previous(), "( %var% )") && tok2 && tok2->str() == "=")
ExecutionPath::bailOutVar(checks, tok.varId()); ExecutionPath::bailOutVar(checks, tok.varId());
else if (!(tok.strAt(-2) == ">" && tok.tokAt(-2)->link())) else if (tok.strAt(-2) != ">" || !tok.linkAt(-2))
use(checks, &tok); use(checks, &tok);
//use_array(checks, &tok); //use_array(checks, &tok);
return &tok; return &tok;