[Cppunit-cvs] cppunit2/src/cpputtest testtestcase.cpp,1.15,1.16
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-07-20 21:07:02
|
Update of /cvsroot/cppunit/cppunit2/src/cpputtest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8806/src/cpputtest Modified Files: testtestcase.cpp Log Message: * Added IntrusivePtr, a reference counted smart-pointer * Changed Test hierarchy and TestFixture to use IntrusivePtr instead of SharedPtr (this allows simple upcasting). Index: testtestcase.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpputtest/testtestcase.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** testtestcase.cpp 27 Feb 2005 16:50:36 -0000 1.15 --- testtestcase.cpp 20 Jul 2005 21:06:51 -0000 1.16 *************** *** 8,13 **** ! struct TestTestCaseFixture { TestTestCaseFixture() : setUp_(0) --- 8,14 ---- ! class TestTestCaseFixture : public CppTL::IntrusiveCount { + public: TestTestCaseFixture() : setUp_(0) *************** *** 42,46 **** }; ! typedef CppTL::SharedPtr<TestTestCaseFixture> TestTestCaseFixturePtr; --- 43,47 ---- }; ! typedef CppTL::IntrusivePtr<TestTestCaseFixture> TestTestCaseFixturePtr; |