From 6c93f4232525f55b283be6881ed12db623cd5ce0 Mon Sep 17 00:00:00 2001 From: Nicky Date: Sun, 13 Nov 2022 11:18:44 +0100 Subject: Use const& as it is illegal to bind a non const reference to a temporary --- indra/newview/llgltfmateriallist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview') 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 && -- cgit v1.2.3