summaryrefslogtreecommitdiff
path: root/ACE/ace/Process.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-09-26 19:29:18 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-09-26 19:29:18 +0200
commitfc303f4408a093ea939c5583a5f5f1a7292f5704 (patch)
tree079a30af18c997e36f882a123c247863078b6a9d /ACE/ace/Process.cpp
parentab1d28b5dd3665cd21c9cef12e055df2fe8918ec (diff)
downloadATCD-fc303f4408a093ea939c5583a5f5f1a7292f5704.tar.gz
Use std::unique_ptr instead of ACE_Auto_Basic_Array_Ptr
* ACE/ace/Configuration.cpp: * ACE/ace/Local_Memory_Pool.cpp: * ACE/ace/Local_Name_Space_T.cpp: * ACE/ace/Log_Record.cpp: * ACE/ace/OS_NS_unistd.cpp: * ACE/ace/Parse_Node.cpp: * ACE/ace/Process.cpp: * ACE/ace/Remote_Name_Space.cpp: * ACE/ace/XML_Utils/XML_Helper.tpp: * TAO/tao/Storable_FlatFileStream.cpp: * TAO/tao/Strategies/DIOP_Acceptor.cpp:
Diffstat (limited to 'ACE/ace/Process.cpp')
-rw-r--r--ACE/ace/Process.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ACE/ace/Process.cpp b/ACE/ace/Process.cpp
index 1da8d0f8039..cc3a25d2636 100644
--- a/ACE/ace/Process.cpp
+++ b/ACE/ace/Process.cpp
@@ -5,7 +5,6 @@
#endif /* __ACE_INLINE__ */
#include "ace/ARGV.h"
-#include "ace/Auto_Ptr.h"
#include "ace/Signal.h"
#include "ace/SString.h"
#include "ace/Log_Category.h"
@@ -27,6 +26,8 @@
# include <taskLib.h>
#endif
+#include <memory>
+
// This function acts as a signal handler for SIGCHLD. We don't really want
// to do anything with the signal - it's just needed to interrupt a sleep.
// See wait() for more info.
@@ -1039,7 +1040,7 @@ ACE_Process_Options::setenv (const ACE_TCHAR *variable_name,
size_t const buflen = ACE_OS::strlen (variable_name) + ACE_OS::strlen (format) + 2;
ACE_TCHAR *newformat = 0;
ACE_NEW_RETURN (newformat, ACE_TCHAR[buflen], -1);
- ACE_Auto_Basic_Array_Ptr<ACE_TCHAR> safe_newformat (newformat);
+ std::unique_ptr<ACE_TCHAR[]> safe_newformat (newformat);
# if !defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
const ACE_TCHAR *fmt = ACE_TEXT ("%ls=%ls");
@@ -1061,7 +1062,7 @@ ACE_Process_Options::setenv (const ACE_TCHAR *variable_name,
ACE_TCHAR *stack_buf = 0;
ACE_NEW_RETURN (stack_buf, ACE_TCHAR[tmp_buflen], -1);
- ACE_Auto_Basic_Array_Ptr<ACE_TCHAR> safe_stack_buf (stack_buf);
+ std::unique_ptr<ACE_TCHAR[]> safe_stack_buf (stack_buf);
do
{