Sfoglia il codice sorgente

meta: move node as it ought to be

Michele Caini 1 anno fa
parent
commit
1175bdca62
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/entt/meta/meta.hpp

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

@@ -775,7 +775,7 @@ struct [[deprecated("use meta_custom instead")]] meta_prop {
      * @param curr The underlying node with which to construct the instance.
      * @param curr The underlying node with which to construct the instance.
      */
      */
     meta_prop(const meta_ctx &area, internal::meta_prop_node curr) noexcept
     meta_prop(const meta_ctx &area, internal::meta_prop_node curr) noexcept
-        : node{curr},
+        : node{std::move(curr)},
           ctx{&area} {}
           ctx{&area} {}
 
 
     /**
     /**