Browse Source

Another missing move. Duplicated code. Duplicated bug

pull/20/head
Aaron Gokaslan 4 years ago
parent
commit
11ed9aa652
  1. 2
      src/Magnum/PythonBindings.h

2
src/Magnum/PythonBindings.h

@ -45,7 +45,7 @@ template<class T> struct PyImageViewHolder: std::unique_ptr<T> {
}; };
template<class T> PyImageViewHolder<T> pyImageViewHolder(const T& view, pybind11::object owner) { template<class T> PyImageViewHolder<T> pyImageViewHolder(const T& view, pybind11::object owner) {
return PyImageViewHolder<T>{new T{view}, owner}; return PyImageViewHolder<T>{new T{view}, std::move(owner)};
} }
} }

Loading…
Cancel
Save