From 054a534f1c6fdb89467f10cd870d90b9225c8cff Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Thu, 22 Sep 2011 15:12:34 +0000 Subject: [PATCH] Added virtual constructor to TEST_UNSAFE to pacify warnings --- CppUnitLite/Test.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CppUnitLite/Test.h b/CppUnitLite/Test.h index 5b7fb90b7..22566131e 100644 --- a/CppUnitLite/Test.h +++ b/CppUnitLite/Test.h @@ -77,6 +77,7 @@ protected: #define TEST_UNSAFE(testName, testGroup)\ class testGroup##testName##Test : public Test \ { public: testGroup##testName##Test () : Test (#testName "Test", __FILE__, __LINE__, false) {} \ + virtual ~testGroup##testName##Test () {};\ void run (TestResult& result_);} \ testGroup##testName##Instance; \ void testGroup##testName##Test::run (TestResult& result_)