From 6c0d0d465b5f360bd2d9d535f5b3fd97c9be6f89 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 4 Nov 2020 17:19:40 +0100 Subject: [PATCH] storage: minor changes --- src/entt/entity/storage.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index 1febad6fe..969d7e16e 100644 --- a/src/entt/entity/storage.hpp +++ b/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(); }