summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/httpresponse.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-05-15 12:46:26 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-05-15 12:46:26 +0300
commitbf1235b017b254ba989b156c73c4ce18ba4e6c23 (patch)
tree8dd5dad68be3aa5cda16938cc3bfaa70f6faad41 /indra/llcorehttp/httpresponse.cpp
parent1e9e5a7b7629276d509c352699fb5891c2dc6587 (diff)
parente7eced3c87310b15ac20cc3cd470d67686104a14 (diff)
Merge branch 'marchcat/w-whitespace' into marchcat/x-mf-merge
Diffstat (limited to 'indra/llcorehttp/httpresponse.cpp')
-rw-r--r--indra/llcorehttp/httpresponse.cpp52
1 files changed, 26 insertions, 26 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 (ba)
- {
- ba->addRef();
- }
-
- mBufferArray = ba;
+ if (mBufferArray == ba)
+ return;
+
+ 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