From a014656f047ed86caa92970f2f53dde3aef08387 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 22 May 2024 16:07:11 +0200 Subject: [PATCH] poly: cleanup --- src/entt/poly/poly.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/entt/poly/poly.hpp b/src/entt/poly/poly.hpp index 6c550e576..977148a5c 100644 --- a/src/entt/poly/poly.hpp +++ b/src/entt/poly/poly.hpp @@ -199,9 +199,7 @@ public: using vtable_type = typename poly_vtable::type; /*! @brief Default constructor. */ - basic_poly() noexcept - : storage{}, - vtable{} {} + basic_poly() noexcept = default; /** * @brief Constructs a poly by directly initializing the new object. @@ -303,8 +301,8 @@ public: } private: - basic_any storage; - vtable_type vtable; + basic_any storage{}; + vtable_type vtable{}; }; } // namespace entt