Use const& as it is illegal to bind a non const reference to a temporary

meow-7.2.2
Nicky 2022-11-13 11:18:44 +01:00
parent cdf248d986
commit 6c93f42325
1 changed files with 2 additions and 2 deletions

View File

@ -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 &&