diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-15 12:01:36 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-15 12:01:36 +0100 |
commit | ff6ce1d7c00be2279f905b2f08cbbd67fa239ae7 (patch) | |
tree | 65d64765acb2a6e18880ef2953a73a2c36e4086c /src | |
parent | 9e22a4f7c7794ab1cbd808058c13356f38ed632a (diff) |
we no longer need a wrapper for the smart pointer case
Diffstat (limited to 'src')
-rw-r--r-- | src/cppunit/Protector.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cppunit/Protector.cpp b/src/cppunit/Protector.cpp index 492bec1..99188bb 100644 --- a/src/cppunit/Protector.cpp +++ b/src/cppunit/Protector.cpp @@ -2,7 +2,6 @@ #include <cppunit/Message.h> #include <cppunit/Protector.h> #include <cppunit/TestResult.h> -#include <cppunit/portability/SmartPtr.h> #include "ProtectorContext.h" #include <memory> @@ -22,7 +21,7 @@ void Protector::reportError( const ProtectorContext &context, const Exception &error ) const { - CppUnitSmartPtr<Exception> actualError( error.clone() ); + std::unique_ptr<Exception> actualError( error.clone() ); actualError->setMessage( actualMessage( actualError->message(), context ) ); context.m_result->addError( context.m_test, actualError.release() ); @@ -43,7 +42,7 @@ void Protector::reportFailure( const ProtectorContext &context, const Exception &failure ) const { - CppUnitSmartPtr<Exception> actualFailure( failure.clone() ); + std::unique_ptr<Exception> actualFailure( failure.clone() ); actualFailure->setMessage( actualMessage( actualFailure->message(), context ) ); context.m_result->addFailure( context.m_test, actualFailure.release() ); |