diff options
| author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-11-07 05:41:20 -0800 |
|---|---|---|
| committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-11-07 06:06:09 -0800 |
| commit | 5cb290d77a3539a492eac43202f27ecd150c99a0 (patch) | |
| tree | 794065d4987c1b226209dd30b24830b80a47e6b2 /examples/qt/ExampleTestCases.cpp | |
| parent | c5813be8793da22ec25e4dfdf9d6dec43695cbeb (diff) | |
| download | cppunit-5cb290d77a3539a492eac43202f27ecd150c99a0.tar.gz | |
add a flag for adding optional features
These features will switch the used C++ version from C++03 to C++11. We
are also going to use std::unique_ptr instead of std::auto_ptr for the
c++11 mode.
Diffstat (limited to 'examples/qt/ExampleTestCases.cpp')
| -rw-r--r-- | examples/qt/ExampleTestCases.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/qt/ExampleTestCases.cpp b/examples/qt/ExampleTestCases.cpp index edd67b0..03f1593 100644 --- a/examples/qt/ExampleTestCases.cpp +++ b/examples/qt/ExampleTestCases.cpp @@ -1,4 +1,5 @@ #include "ExampleTestCases.h" +#include <cppunit/portability/SmartPtr.h> CPPUNIT_TEST_SUITE_REGISTRATION( ExampleTestCases ); @@ -28,8 +29,8 @@ void ExampleTestCases::testAdd () void ExampleTestCases::testEquals () { - std::auto_ptr<long> l1 (new long (12)); - std::auto_ptr<long> l2 (new long (12)); + CppUnitSmartPtr<long> l1 (new long (12)); + CppUnitSmartPtr<long> l2 (new long (12)); CPPUNIT_ASSERT_EQUAL (12, 12); CPPUNIT_ASSERT_EQUAL (12L, 12L); |
