From 3c238882a2adadd5b038212815db2a89f286caa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Jan 2011 17:54:37 +0100 Subject: [PATCH] Fixed TODO testcase. Use symbol database instead of token list. Ticket: #2375 --- lib/checkclass.cpp | 2 +- test/testclass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index c72065c51..69cc57691 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -972,7 +972,7 @@ void CheckClass::checkConst() } } - const Token *paramEnd = func->token->next()->link(); + const Token *paramEnd = func->arg->link(); // check if base class function is virtual if (!info->derivedFrom.empty()) diff --git a/test/testclass.cpp b/test/testclass.cpp index 83cecb57d..d9ca09fd8 100644 --- a/test/testclass.cpp +++ b/test/testclass.cpp @@ -3431,7 +3431,7 @@ private: " typedef int* (Fred::*UnspecifiedBoolType);\n" " operator UnspecifiedBoolType() { array[0] = 0; };\n" "};\n"); - TODO_ASSERT_EQUALS("", errout.str()); + ASSERT_EQUALS("", errout.str()); } void const5()