Browse Source

delegate: cleanup

Michele Caini 1 year ago
parent
commit
539cf5f011
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/entt/signal/delegate.hpp

+ 3 - 5
src/entt/signal/delegate.hpp

@@ -117,9 +117,7 @@ public:
     using result_type = Ret;
 
     /*! @brief Default constructor. */
-    delegate() noexcept
-        : instance{nullptr},
-          fn{nullptr} {}
+    delegate() noexcept = default;
 
     /**
      * @brief Constructs a delegate with a given object or payload, if any.
@@ -295,8 +293,8 @@ public:
     }
 
 private:
-    const void *instance;
-    function_type *fn;
+    const void *instance{};
+    function_type *fn{};
 };
 
 /**