Update of /cvsroot/cppunit/cppunit2/src/cpput
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8806/src/cpput
Modified Files:
cpput.vcproj testsuite.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: testsuite.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/cpput/testsuite.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** testsuite.cpp 5 Mar 2005 12:29:39 -0000 1.8
--- testsuite.cpp 20 Jul 2005 21:06:51 -0000 1.9
***************
*** 64,70 ****
void
! TestSuite::add( const TestSuitePtr &test )
{
! add( CppTL::staticPointerCast<Test>( test ) );
}
--- 64,71 ----
void
! TestSuite::add( const TestSuitePtr &testSuite )
{
! TestPtr test( testSuite.get() );
! add( test );
}
Index: cpput.vcproj
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/cpput/cpput.vcproj,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** cpput.vcproj 4 Jul 2005 08:11:25 -0000 1.35
--- cpput.vcproj 20 Jul 2005 21:06:51 -0000 1.36
***************
*** 133,140 ****
Filter="">
<File
! RelativePath=".\SConscript">
</File>
<File
! RelativePath="..\cpputtest\SConscript">
</File>
<File
--- 133,140 ----
Filter="">
<File
! RelativePath="..\cpputtest\SConscript">
</File>
<File
! RelativePath=".\SConscript">
</File>
<File
***************
*** 220,223 ****
--- 220,226 ----
</File>
<File
+ RelativePath="..\..\include\cpptl\intrusiveptr.h">
+ </File>
+ <File
RelativePath="..\..\include\cpptl\reflection.h">
</File>
|