Use std::move in MeshAssimp.

Tested this via material_sandbox, seems to be fine.

Fixes #1366.
This commit is contained in:
Philip Rideout
2019-07-02 14:12:47 -07:00
parent ca5b52b2ce
commit fd4d6c0d44

View File

@@ -305,7 +305,7 @@ MeshAssimp::~MeshAssimp() {
template<typename T>
struct State {
std::vector<T> state;
explicit State(std::vector<T>&& state) : state(state) { }
explicit State(std::vector<T>&& state) : state(std::move(state)) { }
static void free(void* buffer, size_t size, void* user) {
auto* const that = static_cast<State<T>*>(user);
delete that;