summaryrefslogtreecommitdiff
path: root/salhelper
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2014-02-21 14:33:44 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2014-02-21 14:35:52 +0900
commit5f17e5eaad665337c7d8b7f05a61adc21d80a073 (patch)
treefa653f05c3724046dc9bd373f1e66fd462f282b3 /salhelper
parent24dd10c727ab2d7a38368292498520e11d98e3cb (diff)
Replace deprecated std::auto_ptr with boost::scoped_ptr
Change-Id: I674b7ee507258555b667657a13db6fda9b8d8372
Diffstat (limited to 'salhelper')
-rw-r--r--salhelper/qa/test_api.cxx4
1 files changed, 1 insertions, 3 deletions
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 <cppunit/plugin/TestPlugIn.h>
#include <boost/scoped_ptr.hpp>
-#include <memory>
-
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(