diff options
| author | Rye <rye@alchemyviewer.org> | 2025-11-28 11:03:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-28 18:03:31 +0200 |
| commit | 54b3f3de64f3749022d95063c7439bfed316645f (patch) | |
| tree | 62b539ac973ed24ba6baef8aaeda8980c9bd99c0 /indra/newview/llfloaterexperiences.cpp | |
| parent | bae1e1053de5db189b729f7c40e77fa26fe83766 (diff) | |
#5072 Use make_shared for more efficient ref counting and allocation
Diffstat (limited to 'indra/newview/llfloaterexperiences.cpp')
| -rw-r--r-- | indra/newview/llfloaterexperiences.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llfloaterexperiences.cpp b/indra/newview/llfloaterexperiences.cpp index 9e00fb0fbb..f4cb3a04f5 100644 --- a/indra/newview/llfloaterexperiences.cpp +++ b/indra/newview/llfloaterexperiences.cpp @@ -366,10 +366,10 @@ void LLFloaterExperiences::retrieveExperienceListCoro(std::string url, { LLCore::HttpRequest::policy_t httpPolicy(LLCore::HttpRequest::DEFAULT_POLICY_ID); LLCoreHttpUtil::HttpCoroutineAdapter::ptr_t - httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("retrieveExperienceListCoro", httpPolicy)); - LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); - LLCore::HttpOptions::ptr_t httpOptions(new LLCore::HttpOptions); - LLCore::HttpHeaders::ptr_t httpHeaders(new LLCore::HttpHeaders); + httpAdapter = std::make_shared<LLCoreHttpUtil::HttpCoroutineAdapter>("retrieveExperienceListCoro", httpPolicy); + LLCore::HttpRequest::ptr_t httpRequest = std::make_shared<LLCore::HttpRequest>(); + LLCore::HttpOptions::ptr_t httpOptions = std::make_shared<LLCore::HttpOptions>(); + LLCore::HttpHeaders::ptr_t httpHeaders = std::make_shared<LLCore::HttpHeaders>(); if (url.empty()) |
