From 399e8e551e238beb72b1270ffe7f7a3c86716a6d Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sat, 23 Aug 2014 12:47:16 +0200 Subject: [PATCH] Fixed cppcheck internal warnings --- test/testsimplifytokens.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index ffa2a0214..f58f561ca 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -2740,8 +2740,8 @@ private: ASSERT_EQUALS("; m = q . push < Message > ( x ) ; while ( ! m ) { m = q . push < Message > ( x ) ; }", tokenizer.tokens()->stringifyList(0, false)); ASSERT(tokenizer.tokens()->tokAt(26) != nullptr); if (tokenizer.tokens()->tokAt(26)) { - ASSERT(tokenizer.tokens()->tokAt(6)->link() == tokenizer.tokens()->tokAt(8)); - ASSERT(tokenizer.tokens()->tokAt(24)->link() == tokenizer.tokens()->tokAt(26)); + ASSERT(tokenizer.tokens()->linkAt(6) == tokenizer.tokens()->tokAt(8)); + ASSERT(tokenizer.tokens()->linkAt(24) == tokenizer.tokens()->tokAt(26)); } }