diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-06-10 17:06:06 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-06-10 19:25:02 +0300 |
| commit | 0dcc912cecdfb365c1f4246545ece40ccb7bc18e (patch) | |
| tree | ccf664c765d1adbbf4985069321df65c85ca36e2 /indra/llcorehttp/httpresponse.cpp | |
| parent | bd8438f7083643ae5812b14e35e69e69ef1616c6 (diff) | |
| parent | d317454c82e016a02c8a708a0118f3ff29aa8e82 (diff) | |
Merge main into inventory_favorites
# Conflicts:
# indra/llui/llfolderviewmodel.h
# indra/newview/llpanelwearing.cpp
# indra/newview/llwearableitemslist.cpp
Diffstat (limited to 'indra/llcorehttp/httpresponse.cpp')
| -rw-r--r-- | indra/llcorehttp/httpresponse.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/indra/llcorehttp/httpresponse.cpp b/indra/llcorehttp/httpresponse.cpp index f5ad2ebd47..1436054c0b 100644 --- a/indra/llcorehttp/httpresponse.cpp +++ b/indra/llcorehttp/httpresponse.cpp @@ -1,6 +1,6 @@ /** * @file httpresponse.cpp - * @brief + * @brief * * $LicenseInfo:firstyear=2012&license=viewerlgpl$ * Second Life Viewer Source Code @@ -34,41 +34,41 @@ namespace LLCore HttpResponse::HttpResponse() - : LLCoreInt::RefCounted(true), - mReplyOffset(0U), - mReplyLength(0U), - mReplyFullLength(0U), - mBufferArray(NULL), - mHeaders(), - mRetries(0U), - m503Retries(0U), + : LLCoreInt::RefCounted(true), + mReplyOffset(0U), + mReplyLength(0U), + mReplyFullLength(0U), + mBufferArray(NULL), + mHeaders(), + mRetries(0U), + m503Retries(0U), mRequestUrl() {} HttpResponse::~HttpResponse() { - setBody(NULL); - //setHeaders(); + setBody(NULL); + //setHeaders(); } void HttpResponse::setBody(BufferArray * ba) { - if (mBufferArray == ba) - return; - - if (mBufferArray) - { - mBufferArray->release(); - } + if (mBufferArray == ba) + return; - if (ba) - { - ba->addRef(); - } - - mBufferArray = ba; + if (mBufferArray) + { + mBufferArray->release(); + } + + if (ba) + { + ba->addRef(); + } + + mBufferArray = ba; } @@ -79,7 +79,7 @@ void HttpResponse::setHeaders(HttpHeaders::ptr_t &headers) size_t HttpResponse::getBodySize() const { - return (mBufferArray) ? mBufferArray->size() : 0; + return (mBufferArray) ? mBufferArray->size() : 0; } } // end namespace LLCore |
