Sfoglia il codice sorgente

test: explicit nullptr check

skypjack 3 mesi fa
parent
commit
713bcd50a3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      test/example/entity_copy.cpp

+ 1 - 1
test/example/entity_copy.cpp

@@ -104,7 +104,7 @@ TYPED_TEST(EntityCopy, CrossRegistry) {
         if(storage.contains(entity)) {
             auto *other = dst.storage(id);
 
-            if(!other) {
+            if(other == nullptr) {
                 using namespace entt::literals;
                 entt::resolve(storage.info()).invoke("storage"_hs, {}, entt::forward_as_meta(dst), id);
                 other = dst.storage(id);