Explorar el Código

meta: cleanup

skypjack hace 1 año
padre
commit
36df10fd2c
Se han modificado 1 ficheros con 2 adiciones y 9 borrados
  1. 2 9
      src/entt/meta/factory.hpp

+ 2 - 9
src/entt/meta/factory.hpp

@@ -457,16 +457,9 @@ public:
     template<typename... Value>
     meta_factory prop(id_type id, [[maybe_unused]] Value &&...value) {
         if constexpr(sizeof...(Value) == 0u) {
-            this->property(
-                id,
-                internal::meta_prop_node{
-                    &internal::resolve<void>});
+            this->property(id, internal::meta_prop_node{&internal::resolve<void>});
         } else {
-            this->property(
-                id,
-                internal::meta_prop_node{
-                    &internal::resolve<std::decay_t<Value>>...,
-                    std::make_shared<std::decay_t<Value>>(std::forward<Value>(value))...});
+            this->property(id, internal::meta_prop_node{&internal::resolve<std::decay_t<Value>>..., std::make_shared<std::decay_t<Value>>(std::forward<Value>(value))...});
         }
 
         return *this;