소스 검색

group: suppress shadow warning

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

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

@@ -153,10 +153,10 @@ public:
         }
     }
 
-    size_type owned(const id_type *elem, size_type len) const noexcept final {
+    size_type owned(const id_type *elem, size_type length) const noexcept final {
         size_type cnt = 0u;
 
-        for(auto pos = 0u; pos < len; ++pos) {
+        for(auto pos = 0u; pos < length; ++pos) {
             cnt += ((elem[pos] == entt::type_hash<typename Owned::value_type>::value()) || ...);
         }