From 5a0df03d2ba9a1a02bbdf0cfd12f47d29323fad1 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Mon, 7 Nov 2022 09:34:00 -0500 Subject: [PATCH] Fix another missing move in glTFCommon.h --- code/AssetLib/glTF/glTFCommon.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/AssetLib/glTF/glTFCommon.h b/code/AssetLib/glTF/glTFCommon.h index edc3c7e03..db25e2172 100644 --- a/code/AssetLib/glTF/glTFCommon.h +++ b/code/AssetLib/glTF/glTFCommon.h @@ -245,9 +245,12 @@ struct Nullable { Nullable() : isPresent(false) {} - Nullable(T &val) : + Nullable(const T &val) : value(val), isPresent(true) {} + Nullable(T &&val) : + value(std::move(val)), + isPresent(true) {} }; //! A reference to one top-level object, which is valid