From 11ed9aa65256ea9f45604e9335a77e3cf2eb4172 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Wed, 5 Oct 2022 12:16:52 -0400 Subject: [PATCH] Another missing move. Duplicated code. Duplicated bug --- src/Magnum/PythonBindings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/PythonBindings.h b/src/Magnum/PythonBindings.h index 7150d4a..ff4d871 100644 --- a/src/Magnum/PythonBindings.h +++ b/src/Magnum/PythonBindings.h @@ -45,7 +45,7 @@ template struct PyImageViewHolder: std::unique_ptr { }; template PyImageViewHolder pyImageViewHolder(const T& view, pybind11::object owner) { - return PyImageViewHolder{new T{view}, owner}; + return PyImageViewHolder{new T{view}, std::move(owner)}; } }