From 5f17e5eaad665337c7d8b7f05a61adc21d80a073 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 21 Feb 2014 14:33:44 +0900 Subject: Replace deprecated std::auto_ptr with boost::scoped_ptr Change-Id: I674b7ee507258555b667657a13db6fda9b8d8372 --- salhelper/qa/test_api.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'salhelper/qa') diff --git a/salhelper/qa/test_api.cxx b/salhelper/qa/test_api.cxx index 8b98ef3489e0..c9d88005b4a5 100644 --- a/salhelper/qa/test_api.cxx +++ b/salhelper/qa/test_api.cxx @@ -57,8 +57,6 @@ std::type_info const & getSimpleReferenceObjectTypeInfo() #include #include -#include - namespace { class DerivedCondition: public salhelper::Condition { @@ -110,7 +108,7 @@ public: void Test::testCondition() { osl::Mutex mutex; - std::auto_ptr< salhelper::Condition > p(new DerivedCondition(mutex)); + boost::scoped_ptr< salhelper::Condition > p(new DerivedCondition(mutex)); CPPUNIT_ASSERT(typeid (*p.get()) != typeid (salhelper::Condition)); CPPUNIT_ASSERT(typeid (p.get()) == typeid (salhelper::Condition *)); CPPUNIT_ASSERT( -- cgit