summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-12-30 10:17:28 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-12-30 10:17:28 +0100
commitfb47ee90c59a357e4828c22e2f61aa03cda551a9 (patch)
tree0048a3fd5ead69218f2949b75ba7d715e2d25e1d
parent16b0eacc8aeaf62dd2f22c3a3dcbd90bf59b9e7a (diff)
downloadATCD-fb47ee90c59a357e4828c22e2f61aa03cda551a9.tar.gz
Make use of std::unique_ptr
* TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp:
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp7
1 files 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 <memory>
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<POA_RtecEventChannelAdmin::EventChannel> 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<POA_RtecEventChannelAdmin::EventChannel> auto_ec_impl (ec);
- ec_impl = auto_ec_impl;
+ std::unique_ptr<POA_RtecEventChannelAdmin::EventChannel> ec_impl (ec);
RtecEventChannelAdmin::EventChannel_var channel =
ec_impl->_this ();