From 379c49fc898961b52f98855c926e958df14e98c3 Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Mon, 23 Mar 2015 13:50:07 -0700 Subject: Scratch the unique_ptr for the moment. --- indra/llcorehttp/httpcommon.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/indra/llcorehttp/httpcommon.h b/indra/llcorehttp/httpcommon.h index 0244755272..2aded492ea 100755 --- a/indra/llcorehttp/httpcommon.h +++ b/indra/llcorehttp/httpcommon.h @@ -188,7 +188,6 @@ /// #include "linden_common.h" // Modifies curl/curl.h interfaces - #include namespace LLCore @@ -292,24 +291,29 @@ struct HttpStatus HttpStatus() { - mDetails = std::unique_ptr
(new Details(LLCORE, HE_SUCCESS)); - } + mDetails = new Details(LLCORE, HE_SUCCESS); + } HttpStatus(type_enum_t type, short status) { - mDetails = std::unique_ptr
(new Details(type, status)); + mDetails = new Details(type, status); } HttpStatus(int http_status) { - mDetails = std::unique_ptr
(new Details(http_status, - (http_status >= 200 && http_status <= 299) ? HE_SUCCESS : HE_REPLY_ERROR)); + mDetails = new Details(http_status, + (http_status >= 200 && http_status <= 299) ? HE_SUCCESS : HE_REPLY_ERROR); llassert(http_status >= 100 && http_status <= 999); } HttpStatus(const HttpStatus & rhs) { - mDetails = std::unique_ptr
(new Details(*rhs.mDetails)); + mDetails = new Details(*rhs.mDetails); + } + + ~HttpStatus() + { + delete mDetails; } HttpStatus & operator=(const HttpStatus & rhs) @@ -468,7 +472,8 @@ private: void * mErrorData; }; - std::unique_ptr
mDetails; + //boost::unique_ptr
mDetails; + Details * mDetails; }; // end struct HttpStatus -- cgit v1.2.3