Przeglądaj źródła

meta: drop unnecessary move

skypjack 2 lat temu
rodzic
commit
95643b6a56
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -1650,7 +1650,7 @@ bool meta_any::set(const id_type id, Type &&value) {
 
 
 inline bool meta_any::assign(const meta_any &other) {
 inline bool meta_any::assign(const meta_any &other) {
     auto value = other.allow_cast({*ctx, node});
     auto value = other.allow_cast({*ctx, node});
-    return value && storage.assign(std::move(value.storage));
+    return value && storage.assign(value.storage);
 }
 }
 
 
 inline bool meta_any::assign(meta_any &&other) {
 inline bool meta_any::assign(meta_any &&other) {