diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-08-16 09:38:44 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-08-16 09:38:44 -0700 |
commit | b8c46f9615bffa0e6aeb909924c39581b160fdef (patch) | |
tree | 75b5e720bc04cc5e4baca2d6969783fc9912ca63 /indra/newview/llmaterialeditor.cpp | |
parent | c707b4015f83ef4623fdb0454160f79ec235abcf (diff) | |
parent | aea4ba7ab78d931a5056735893103f125a293cc2 (diff) |
Merge branch 'DRTVWR-559' of bitbucket.org:lindenlab/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
-rw-r--r-- | indra/newview/llmaterialeditor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp index ffeb2db4df..7b17fb5fdf 100644 --- a/indra/newview/llmaterialeditor.cpp +++ b/indra/newview/llmaterialeditor.cpp @@ -705,9 +705,13 @@ const std::string LLMaterialEditor::buildMaterialDescription() } // sanitize the material description so that it's compatible with the inventory - LLInventoryObject::correctInventoryName(desc.str()); + // note: split this up because clang doesn't like operating directly on the + // str() - error: lvalue reference to type 'basic_string<...>' cannot bind to a + // temporary of type 'basic_string<...>' + std::string inv_desc = desc.str(); + LLInventoryObject::correctInventoryName(inv_desc); - return desc.str(); + return inv_desc; } bool LLMaterialEditor::saveIfNeeded() |