From fb47ee90c59a357e4828c22e2f61aa03cda551a9 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Wed, 30 Dec 2020 10:17:28 +0100 Subject: Make use of std::unique_ptr * TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp: --- TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp index 315d6b03e94..c3da2d41833 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp @@ -13,12 +13,12 @@ #include "tao/debug.h" #include "ace/Get_Opt.h" -#include "ace/Auto_Ptr.h" #include "ace/Sched_Params.h" #include "ace/High_Res_Timer.h" #include "ace/OS_NS_strings.h" #include "ace/OS_NS_errno.h" #include "ace/OS_NS_unistd.h" +#include int ACE_TMAIN(int argc, ACE_TCHAR *argv[]) @@ -205,8 +205,6 @@ ECT_Throughput::run (int argc, ACE_TCHAR* argv[]) ACE_Scheduler_Factory::use_config (naming_context.in ()); #endif /* 0 */ - auto_ptr ec_impl; - TAO_EC_Event_Channel_Attributes attr (root_poa.in (), root_poa.in ()); @@ -215,8 +213,7 @@ ECT_Throughput::run (int argc, ACE_TCHAR* argv[]) ec->activate (); - auto_ptr auto_ec_impl (ec); - ec_impl = auto_ec_impl; + std::unique_ptr ec_impl (ec); RtecEventChannelAdmin::EventChannel_var channel = ec_impl->_this (); -- cgit v1.2.1