Fixed 'tokAt(-2)->link() -> linkAt(-2)' thanks to cppcheck internal check.
This commit is contained in:
parent
64b4960acc
commit
8324de1dc0
|
@ -474,7 +474,7 @@ private:
|
|||
// variable is assigned like: "( %var% ) .. ="
|
||||
if (Token::Match(tok.previous(), "( %var% )") && tok2 && tok2->str() == "=")
|
||||
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_array(checks, &tok);
|
||||
return &tok;
|
||||
|
|
Loading…
Reference in New Issue