From 6ba538587877427e2ca6dba432f4bfd09a747454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 18 Sep 2010 19:03:15 +0200 Subject: [PATCH] CheckClass: the 'virtual destructor' checking is currently inactive --- lib/checkclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkclass.h b/lib/checkclass.h index 71712caae..5988b66e1 100644 --- a/lib/checkclass.h +++ b/lib/checkclass.h @@ -339,7 +339,7 @@ private: memsetStructError(0, "memfunc", "classname"); operatorEqReturnError(0); operatorEqReturnConstError(0); - virtualDestructorError(0, "Base", "Derived"); + //virtualDestructorError(0, "Base", "Derived"); thisSubtractionError(0); operatorEqRetRefThisError(0); operatorEqToSelfError(0); @@ -357,7 +357,7 @@ private: "* Missing constructors\n" "* Are all variables initialized by the constructors?\n" "* [[CheckMemset|Warn if memset, memcpy etc are used on a class]]\n" - "* If it's a base class, check that the destructor is virtual\n" + //"* If it's a base class, check that the destructor is virtual\n" "* Are there unused private functions\n" "* 'operator=' should return reference to self\n" "* 'operator=' should check for assignment to self\n"