summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2024-07-03 17:32:45 -0400
committerRye Mutt <rye@alchemyviewer.org>2024-07-05 02:56:24 -0400
commit59312bf209c5fcdb27c283caaa2ed36502ec7a33 (patch)
tree1288037eb250a24d23de8d388e8511f5999ddf62 /indra/llui
parentb099dbef27f2af47a421bb9848cfbca1aaa08327 (diff)
Introduce string_view to LLSD map functions to reduce string temporaries
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llnotifications.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp
index 8a73148631..cd80e7f63f 100644
--- a/indra/llui/llnotifications.cpp
+++ b/indra/llui/llnotifications.cpp
@@ -861,7 +861,7 @@ void LLNotification::init(const std::string& template_name, const LLSD& form_ele
for (LLStringUtil::format_map_t::const_iterator iter = default_args.begin();
iter != default_args.end(); ++iter)
{
- mSubstitutions[iter->first] = iter->second;
+ mSubstitutions[std::string(iter->first)] = iter->second;
}
mSubstitutions["_URL"] = getURL();
mSubstitutions["_NAME"] = template_name;