Pārlūkot izejas kodu

storage: minor changes

Michele Caini 5 gadi atpakaļ
vecāks
revīzija
6c0d0d465b
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      src/entt/entity/storage.hpp

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

@@ -418,7 +418,7 @@ public:
      *
      * @param entt A valid entity identifier.
      */
-    void remove(const entity_type entt) override {
+    void remove(const entity_type entt) final {
         auto other = std::move(instances.back());
         instances[underlying_type::index(entt)] = std::move(other);
         instances.pop_back();
@@ -446,7 +446,7 @@ public:
      * @param lhs A valid entity identifier.
      * @param rhs A valid entity identifier.
      */
-    void swap(const entity_type lhs, const entity_type rhs) override {
+    void swap(const entity_type lhs, const entity_type rhs) final {
         std::swap(instances[underlying_type::index(lhs)], instances[underlying_type::index(rhs)]);
         underlying_type::swap(lhs, rhs);
     }
@@ -513,7 +513,7 @@ public:
     }
 
     /*! @brief Clears a storage. */
-    void clear() ENTT_NOEXCEPT override {
+    void clear() ENTT_NOEXCEPT final {
         underlying_type::clear();
         instances.clear();
     }