From 8324de1dc000a7f7fd375b300a17edf4b1021645 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sat, 13 Oct 2012 14:59:34 +0200 Subject: [PATCH] Fixed 'tokAt(-2)->link() -> linkAt(-2)' thanks to cppcheck internal check. --- lib/checkuninitvar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index 6189c7581..5c9badb86 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -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;