From fd4d6c0d44c0b367298f8b092d2e4a2aaa185aa3 Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Tue, 2 Jul 2019 14:12:47 -0700 Subject: [PATCH] Use std::move in MeshAssimp. Tested this via material_sandbox, seems to be fine. Fixes #1366. --- samples/app/MeshAssimp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/app/MeshAssimp.cpp b/samples/app/MeshAssimp.cpp index a41803cdae..ad2777b6c0 100644 --- a/samples/app/MeshAssimp.cpp +++ b/samples/app/MeshAssimp.cpp @@ -305,7 +305,7 @@ MeshAssimp::~MeshAssimp() { template struct State { std::vector state; - explicit State(std::vector&& state) : state(state) { } + explicit State(std::vector&& state) : state(std::move(state)) { } static void free(void* buffer, size_t size, void* user) { auto* const that = static_cast*>(user); delete that;