From e3dfe8c45eec2adc487b938795d4fca3e5983f68 Mon Sep 17 00:00:00 2001 From: Bastiaan Bakker Date: Fri, 1 Jun 2001 21:06:33 +0000 Subject: (suite): fixed 'ISO C++ forbids taking the address of a bound member function to form a pointer to member function' bug reported by g++. (suite): removed dependency on RTTI. --- examples/cppunittest/TestCallerTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/cppunittest/TestCallerTest.cpp') diff --git a/examples/cppunittest/TestCallerTest.cpp b/examples/cppunittest/TestCallerTest.cpp index 3568754..9512e02 100644 --- a/examples/cppunittest/TestCallerTest.cpp +++ b/examples/cppunittest/TestCallerTest.cpp @@ -19,11 +19,11 @@ TestCallerTest::~TestCallerTest() CppUnit::TestSuite * TestCallerTest::suite() { - CppUnit::TestSuiteBuilder suite; + CppUnit::TestSuiteBuilder suite("TestCallerTest"); - suite.addTestCaller( "testBasicConstructor", &testBasicConstructor ); - suite.addTestCaller( "testReferenceConstructor", &testReferenceConstructor ); - suite.addTestCaller( "testPointerConstructor", &testPointerConstructor ); + suite.addTestCaller( "testBasicConstructor", &TestCallerTest::testBasicConstructor ); + suite.addTestCaller( "testReferenceConstructor", &TestCallerTest::testReferenceConstructor ); + suite.addTestCaller( "testPointerConstructor", &TestCallerTest::testPointerConstructor ); return suite.takeSuite(); } -- cgit v1.2.1