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 /examples/qt/ExampleTestCases.cpp | |
| parent | 9e22a4f7c7794ab1cbd808058c13356f38ed632a (diff) | |
| download | cppunit-ff6ce1d7c00be2279f905b2f08cbbd67fa239ae7.tar.gz | |
we no longer need a wrapper for the smart pointer case
Diffstat (limited to 'examples/qt/ExampleTestCases.cpp')
| -rw-r--r-- | examples/qt/ExampleTestCases.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/qt/ExampleTestCases.cpp b/examples/qt/ExampleTestCases.cpp index 03f1593..457e4d4 100644 --- a/examples/qt/ExampleTestCases.cpp +++ b/examples/qt/ExampleTestCases.cpp @@ -1,5 +1,5 @@ #include "ExampleTestCases.h" -#include <cppunit/portability/SmartPtr.h> +#include <memory> CPPUNIT_TEST_SUITE_REGISTRATION( ExampleTestCases ); @@ -29,8 +29,8 @@ void ExampleTestCases::testAdd () void ExampleTestCases::testEquals () { - CppUnitSmartPtr<long> l1 (new long (12)); - CppUnitSmartPtr<long> l2 (new long (12)); + std::unique_ptr<long> l1 (new long (12)); + std::unique_ptr<long> l2 (new long (12)); CPPUNIT_ASSERT_EQUAL (12, 12); CPPUNIT_ASSERT_EQUAL (12L, 12L); |
