diff options
author | Rider Linden <rider@lindenlab.com> | 2015-07-08 10:01:27 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-07-08 10:01:27 -0700 |
commit | 1138c57f9a8553903199e727912d7f1b092697e4 (patch) | |
tree | 4414279316808fa7d778eb64540ba6dff07465e0 /indra/newview/llhttpretrypolicy.cpp | |
parent | 6689c92400a42bfc005f91b00c06601c508eac64 (diff) |
Convert LLCore::HttpHeaders to use shared_ptr<> rather than an intrusive_ptr<> for refrence counting.
Diffstat (limited to 'indra/newview/llhttpretrypolicy.cpp')
-rwxr-xr-x | indra/newview/llhttpretrypolicy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llhttpretrypolicy.cpp b/indra/newview/llhttpretrypolicy.cpp index 530eb685fa..e2e151eb63 100755 --- a/indra/newview/llhttpretrypolicy.cpp +++ b/indra/newview/llhttpretrypolicy.cpp @@ -56,7 +56,7 @@ bool LLAdaptiveRetryPolicy::getRetryAfter(const LLSD& headers, F32& retry_header && getSecondsUntilRetryAfter(headers[HTTP_IN_HEADER_RETRY_AFTER].asStringRef(), retry_header_time)); } -bool LLAdaptiveRetryPolicy::getRetryAfter(const LLCore::HttpHeaders *headers, F32& retry_header_time) +bool LLAdaptiveRetryPolicy::getRetryAfter(const LLCore::HttpHeaders::ptr_t &headers, F32& retry_header_time) { if (headers) { @@ -85,7 +85,7 @@ void LLAdaptiveRetryPolicy::onFailure(S32 status, const LLSD& headers) void LLAdaptiveRetryPolicy::onFailure(const LLCore::HttpResponse *response) { F32 retry_header_time; - const LLCore::HttpHeaders *headers = response->getHeaders(); + const LLCore::HttpHeaders::ptr_t headers = response->getHeaders(); bool has_retry_header_time = getRetryAfter(headers,retry_header_time); onFailureCommon(response->getStatus().getType(), has_retry_header_time, retry_header_time); } |