소스 검색

group: use override rather than virtual

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

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

@@ -149,7 +149,7 @@ public:
         common_setup();
         common_setup();
     }
     }
 
 
-    virtual bool owned(const id_type hash) const noexcept {
+    bool owned(const id_type hash) const noexcept override {
         for(size_type pos{}; pos < Owned; ++pos) {
         for(size_type pos{}; pos < Owned; ++pos) {
             if(pools[pos]->type().hash() == hash) {
             if(pools[pos]->type().hash() == hash) {
                 return true;
                 return true;