summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@posteo.nl>2022-11-13 11:18:44 +0100
committerNicky <nicky.dasmijn@posteo.nl>2022-11-13 11:18:44 +0100
commit6c93f4232525f55b283be6881ed12db623cd5ce0 (patch)
treed60c9712448e41471710d896adceda4204705e35
parentcdf248d9860246fd0bee84f700642709fdebbe6e (diff)
Use const& as it is illegal to bind a non const reference to a temporary
-rw-r--r--indra/newview/llgltfmateriallist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llgltfmateriallist.cpp b/indra/newview/llgltfmateriallist.cpp
index 1a059ca9fd..19cef5dffd 100644
--- a/indra/newview/llgltfmateriallist.cpp
+++ b/indra/newview/llgltfmateriallist.cpp
@@ -184,8 +184,8 @@ public:
if (message.has("sides") && message.has("gltf_json"))
{
- LLSD& sides = message.get("sides");
- LLSD& gltf_json = message.get("gltf_json");
+ LLSD const& sides = message.get("sides");
+ LLSD const& gltf_json = message.get("gltf_json");
if (sides.isArray() && gltf_json.isArray() &&
sides.size() != 0 &&