diff options
Diffstat (limited to 'ACE/protocols')
-rw-r--r-- | ACE/protocols/ace/HTBP/HTBP_ID_Requestor.cpp | 2 | ||||
-rw-r--r-- | ACE/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ACE/protocols/ace/HTBP/HTBP_ID_Requestor.cpp b/ACE/protocols/ace/HTBP/HTBP_ID_Requestor.cpp index d0edffa8de0..9171492ce73 100644 --- a/ACE/protocols/ace/HTBP/HTBP_ID_Requestor.cpp +++ b/ACE/protocols/ace/HTBP/HTBP_ID_Requestor.cpp @@ -77,7 +77,7 @@ ACE::HTBP::ID_Requestor::send_request (ACE_SOCK_Stream *cli_stream) { char *buffer; ACE_NEW_RETURN (buffer, char[this->url_.length()+16],-1); - ACE_Auto_Array_Ptr<char> guard (buffer); + std::unique_ptr<char[]> guard (buffer); ACE_OS::sprintf (buffer,"GET %s HTTP/1.0\n\n", ACE_TEXT_ALWAYS_CHAR(url_.c_str())); int result = cli_stream->send_n (buffer,ACE_OS::strlen(buffer)); diff --git a/ACE/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp b/ACE/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp index 6e7e81b1316..ee6fc0dd45b 100644 --- a/ACE/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp +++ b/ACE/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp @@ -1,5 +1,4 @@ // ACE_HTBP_Filter.cpp -#include "ace/Auto_Ptr.h" #include "ace/Log_Msg.h" #include "ace/OS_NS_stdio.h" #include "HTBP_Session.h" @@ -9,6 +8,8 @@ #include "HTBP_Inside_Squid_Filter.inl" #endif +#include <memory> + ACE_BEGIN_VERSIONED_NAMESPACE_DECL ssize_t @@ -89,7 +90,7 @@ ACE::HTBP::Inside_Squid_Filter::send_data_header (ssize_t data_len, ACE::HTBP::Channel *ch) { char *buffer = new char[BUFSIZ]; - ACE_Auto_Array_Ptr<char> guard (buffer); + std::unique_ptr<char[]> guard (buffer); ssize_t result = -1; if (this->make_request_header (ch,"POST ",buffer,BUFSIZ) != -1) { @@ -174,7 +175,7 @@ int ACE::HTBP::Inside_Squid_Filter::send_ack (ACE::HTBP::Channel *ch) { char *buffer = new char[BUFSIZ]; - ACE_Auto_Array_Ptr<char> guard (buffer); + std::unique_ptr<char[]> guard (buffer); ssize_t result = -1; if (ch->state() == ACE::HTBP::Channel::Ack_Sent) { |