소스 검색

storage: add override specifier

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

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

@@ -268,7 +268,7 @@ protected:
     }
     }
 
 
     /*! @copydoc basic_sparse_set::swap_and_pop */
     /*! @copydoc basic_sparse_set::swap_and_pop */
-    void swap_and_pop(const Entity entt, void *ud) {
+    void swap_and_pop(const Entity entt, void *ud) override {
         const auto pos = underlying_type::index(entt);
         const auto pos = underlying_type::index(entt);
         const auto last = underlying_type::size() - 1u;
         const auto last = underlying_type::size() - 1u;
         auto &&elem = packed[page(pos)][offset(pos)];
         auto &&elem = packed[page(pos)][offset(pos)];
@@ -282,7 +282,7 @@ protected:
     }
     }
 
 
     /*! @copydoc basic_sparse_set::in_place_pop */
     /*! @copydoc basic_sparse_set::in_place_pop */
-    void in_place_pop(const Entity entt, void *ud) {
+    void in_place_pop(const Entity entt, void *ud) override {
         const auto pos = underlying_type::index(entt);
         const auto pos = underlying_type::index(entt);
         underlying_type::in_place_pop(entt, ud);
         underlying_type::in_place_pop(entt, ud);
         // support for nosy destructors
         // support for nosy destructors