Browse Source

delegate: removed redundant calls to delegate constructor

Michele Caini 5 years ago
parent
commit
045c2a6f05
1 changed files with 3 additions and 9 deletions
  1. 3 9
      src/entt/signal/delegate.hpp

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

@@ -140,9 +140,7 @@ public:
      * @tparam Candidate Function or member to connect to the delegate.
      */
     template<auto Candidate>
-    delegate(connect_arg_t<Candidate>) ENTT_NOEXCEPT
-        : delegate{}
-    {
+    delegate(connect_arg_t<Candidate>) ENTT_NOEXCEPT {
         connect<Candidate>();
     }
 
@@ -154,9 +152,7 @@ public:
      * @param value_or_instance A valid object that fits the purpose.
      */
     template<auto Candidate, typename Type>
-    delegate(connect_arg_t<Candidate>, Type &&value_or_instance) ENTT_NOEXCEPT
-        : delegate{}
-    {
+    delegate(connect_arg_t<Candidate>, Type &&value_or_instance) ENTT_NOEXCEPT {
         connect<Candidate>(std::forward<Type>(value_or_instance));
     }
 
@@ -166,9 +162,7 @@ public:
      * @param function Function to connect to the delegate.
      * @param payload User defined arbitrary data.
      */
-    delegate(function_type *function, const void *payload = nullptr) ENTT_NOEXCEPT
-        : delegate{}
-    {
+    delegate(function_type *function, const void *payload = nullptr) ENTT_NOEXCEPT {
         connect(function, payload);
     }