diff options
Diffstat (limited to 'include/cppunit')
| -rw-r--r-- | include/cppunit/extensions/HelperMacros.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cppunit/extensions/HelperMacros.h b/include/cppunit/extensions/HelperMacros.h index 5c68b03..43fc08e 100644 --- a/include/cppunit/extensions/HelperMacros.h +++ b/include/cppunit/extensions/HelperMacros.h @@ -168,6 +168,7 @@ \ struct CppUnitExDeleter { /* avoid deprecated auto_ptr warnings */ \ CPPUNIT_NS::TestSuite *suite; \ + CppUnitExDeleter() : suite (0) {} \ ~CppUnitExDeleter() { delete suite; } \ CPPUNIT_NS::TestSuite *release() { \ CPPUNIT_NS::TestSuite *tmp = suite; suite = NULL; return tmp; \ |
