From f10eb2f1bfac38826f77e1e52abdd0d0d3d2481b Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 23 Oct 2025 19:50:56 +0200 Subject: Core/Vmaps: Use unique_ptr in RegularGrid2D and DynamicTree classes --- src/common/Collision/DynamicTree.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/common/Collision/DynamicTree.cpp') diff --git a/src/common/Collision/DynamicTree.cpp b/src/common/Collision/DynamicTree.cpp index 073e317e4ae..7566edb473d 100644 --- a/src/common/Collision/DynamicTree.cpp +++ b/src/common/Collision/DynamicTree.cpp @@ -101,10 +101,7 @@ struct DynTreeImpl : public ParentTree/*, public Intersectable*/ DynamicMapTree::DynamicMapTree() : impl(new DynTreeImpl()) { } -DynamicMapTree::~DynamicMapTree() -{ - delete impl; -} +DynamicMapTree::~DynamicMapTree() = default; void DynamicMapTree::insert(GameObjectModel const& mdl) { -- cgit v1.2.3