summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs
diff options
context:
space:
mode:
authorClausKlein <claus.klein@arcormail.de>2021-06-01 18:08:54 +0200
committerClausKlein <claus.klein@arcormail.de>2021-06-01 18:08:54 +0200
commite4d9890748bc415246bd42696b19b5dc136496ae (patch)
tree53764f32350629886ef8929d1fc4b7d630ecbe4c /TAO/orbsvcs
parent1e88ae8645e3c1cb4b42882760419dc1f8ea34df (diff)
downloadATCD-e4d9890748bc415246bd42696b19b5dc136496ae.tar.gz
use std::unique_ptr instead of std::auto_ptr
prevent include of ace/Auto_Ptr.h for TAO at least
Diffstat (limited to 'TAO/orbsvcs')
-rw-r--r--TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
index 43b7c26e659..b3139b404ba 100644
--- a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
+++ b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
@@ -13,10 +13,11 @@
#include "Fault_Detector_i.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
-#include "ace/Auto_Ptr.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/PortableGroup/PG_Property_Set.h"
+#include <memory>
+
// Use this macro at the beginning of CORBA methods
// to aid in debugging.
#define METHOD_ENTRY(name) \
@@ -601,7 +602,7 @@ CORBA::Object_ptr TAO::FT_FaultDetectorFactory_i::create_object (
));
throw PortableGroup::ObjectNotCreated();
}
- auto_ptr<TAO::Fault_Detector_i> detector(pFD);
+ std::unique_ptr<TAO::Fault_Detector_i> detector(pFD);
ACE_NEW_NORETURN ( factory_creation_id,
PortableGroup::GenericFactory::FactoryCreationId);