소스 검색

view: suppress warnings

Michele Caini 6 년 전
부모
커밋
2b719726cd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/entt/entity/view.hpp

+ 2 - 2
src/entt/entity/view.hpp

@@ -252,10 +252,10 @@ class basic_view<Entity, exclude_t<Exclude...>, Component...> {
         });
         });
     }
     }
 
 
-    [[nodiscard]] unchecked_type unchecked(const sparse_set<Entity> *view) const {
+    [[nodiscard]] unchecked_type unchecked(const sparse_set<Entity> *cpool) const {
         std::size_t pos{};
         std::size_t pos{};
         unchecked_type other{};
         unchecked_type other{};
-        ((std::get<pool_type<Component> *>(pools) == view ? nullptr : (other[pos] = std::get<pool_type<Component> *>(pools), other[pos++])), ...);
+        ((std::get<pool_type<Component> *>(pools) == cpool ? nullptr : (other[pos] = std::get<pool_type<Component> *>(pools), other[pos++])), ...);
         return other;
         return other;
     }
     }