Ver Fonte

test: minor changes (coding style)

Michele Caini há 2 anos atrás
pai
commit
059fa5a7a5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      test/common/mixin.hpp

+ 1 - 1
test/common/mixin.hpp

@@ -20,7 +20,7 @@ public:
     using Type::Type;
 
     void bind(entt::any value) noexcept override {
-        if(auto *owner = entt::any_cast<registry_type>(&value)) {
+        if(auto *owner = entt::any_cast<registry_type>(&value); owner) {
             owner->template storage<int>();
         }
     }