瀏覽代碼

test: explicit nullptr check

skypjack 7 月之前
父節點
當前提交
713bcd50a3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)) {
         if(storage.contains(entity)) {
             auto *other = dst.storage(id);
             auto *other = dst.storage(id);
 
 
-            if(!other) {
+            if(other == nullptr) {
                 using namespace entt::literals;
                 using namespace entt::literals;
                 entt::resolve(storage.info()).invoke("storage"_hs, {}, entt::forward_as_meta(dst), id);
                 entt::resolve(storage.info()).invoke("storage"_hs, {}, entt::forward_as_meta(dst), id);
                 other = dst.storage(id);
                 other = dst.storage(id);