Michele Caini 7 tahun lalu
induk
melakukan
25866b5369
2 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 1 1
      src/entt/core/hashed_string.hpp
  2. 3 2
      src/entt/signal/sigh.hpp

+ 1 - 1
src/entt/core/hashed_string.hpp

@@ -52,7 +52,7 @@ public:
      * @tparam N Number of characters of the identifier.
      * @tparam N Number of characters of the identifier.
      * @param str Human-readable identifer.
      * @param str Human-readable identifer.
      */
      */
-    template <std::size_t N>
+    template<std::size_t N>
     constexpr HashedString(const char (&str)[N]) ENTT_NOEXCEPT
     constexpr HashedString(const char (&str)[N]) ENTT_NOEXCEPT
         : hash{helper(offset, str)}, str{str}
         : hash{helper(offset, str)}, str{str}
     {}
     {}

+ 3 - 2
src/entt/signal/sigh.hpp

@@ -23,6 +23,7 @@ namespace internal {
 template<typename>
 template<typename>
 struct sigh_traits;
 struct sigh_traits;
 
 
+
 template<typename Ret, typename... Args>
 template<typename Ret, typename... Args>
 struct sigh_traits<Ret(Args...)> {
 struct sigh_traits<Ret(Args...)> {
     using proto_fn_type = Ret(void *, Args...);
     using proto_fn_type = Ret(void *, Args...);
@@ -189,7 +190,7 @@ public:
      * @tparam Member Member function to connect to the signal.
      * @tparam Member Member function to connect to the signal.
      * @param instance A valid instance of type pointer to `Class`.
      * @param instance A valid instance of type pointer to `Class`.
      */
      */
-    template <typename Class, Ret(Class:: *Member)(Args...) const = &Class::receive>
+    template<typename Class, Ret(Class:: *Member)(Args...) const = &Class::receive>
     void connect(Class *instance) {
     void connect(Class *instance) {
         disconnect<Class, Member>(instance);
         disconnect<Class, Member>(instance);
         calls.emplace_back(instance, &proto<Class, Member>);
         calls.emplace_back(instance, &proto<Class, Member>);
@@ -208,7 +209,7 @@ public:
      * @tparam Member Member function to connect to the signal.
      * @tparam Member Member function to connect to the signal.
      * @param instance A valid instance of type pointer to `Class`.
      * @param instance A valid instance of type pointer to `Class`.
      */
      */
-    template <typename Class, Ret(Class:: *Member)(Args...) = &Class::receive>
+    template<typename Class, Ret(Class:: *Member)(Args...) = &Class::receive>
     void connect(Class *instance) {
     void connect(Class *instance) {
         disconnect<Class, Member>(instance);
         disconnect<Class, Member>(instance);
         calls.emplace_back(instance, &proto<Class, Member>);
         calls.emplace_back(instance, &proto<Class, Member>);