summaryrefslogtreecommitdiff
path: root/examples/cppunittest/ExceptionTest.cpp
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-15 12:01:36 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-15 12:01:36 +0100
commitff6ce1d7c00be2279f905b2f08cbbd67fa239ae7 (patch)
tree65d64765acb2a6e18880ef2953a73a2c36e4086c /examples/cppunittest/ExceptionTest.cpp
parent9e22a4f7c7794ab1cbd808058c13356f38ed632a (diff)
downloadcppunit-ff6ce1d7c00be2279f905b2f08cbbd67fa239ae7.tar.gz
we no longer need a wrapper for the smart pointer case
Diffstat (limited to 'examples/cppunittest/ExceptionTest.cpp')
-rw-r--r--examples/cppunittest/ExceptionTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/cppunittest/ExceptionTest.cpp b/examples/cppunittest/ExceptionTest.cpp
index 856f561..c11a8de 100644
--- a/examples/cppunittest/ExceptionTest.cpp
+++ b/examples/cppunittest/ExceptionTest.cpp
@@ -1,8 +1,9 @@
#include "CoreSuite.h"
#include "ExceptionTest.h"
-#include <cppunit/portability/SmartPtr.h>
#include <cppunit/Exception.h>
+#include <memory>
+
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ExceptionTest,
coreSuiteName() );
@@ -79,7 +80,7 @@ ExceptionTest::testClone()
{
CPPUNIT_NS::SourceLine sourceLine( "fileName.cpp", 123 );
CPPUNIT_NS::Exception e( CPPUNIT_NS::Message("message"), sourceLine );
- CppUnitSmartPtr<CPPUNIT_NS::Exception> other( e.clone() );
+ std::unique_ptr<CPPUNIT_NS::Exception> other( e.clone() );
checkIsSame( e, *other.get() );
}