From 1361d7d36aca930f621ac1f5a68aae515eb6a28d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 16 Jul 2024 20:46:41 +0200 Subject: remove last usages --- test/hash.cpp | 4 ++-- test/json.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/hash.cpp b/test/hash.cpp index 2c6a7516..7582db43 100644 --- a/test/hash.cpp +++ b/test/hash.cpp @@ -4,8 +4,8 @@ #include "src/global-coords.hpp" #include "src/world.hpp" #include +#include #include -#include #include #ifdef __GNUG__ @@ -49,7 +49,7 @@ template constexpr size_t Iters = (CoordMax*2 + 1)*(CoordMax*2 + 1)*(1+ZMax); // NOLINT(*-implicit-widening-of-multiplication-result) constexpr size_t BucketCount = Math::max(world::initial_capacity, size_t(Math::ceil(Iters / 0.2f))); uint32_t num_collisions = 0, iters = 0; - auto bitset_ = std::make_unique>(false); + auto bitset_ = Pointer>{InPlace, false}; auto& bitset = *bitset_; for (int16_t j = -CoordMax; j <= CoordMax; j++) diff --git a/test/json.cpp b/test/json.cpp index e9ed166f..c075d99c 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -9,7 +9,6 @@ #include "src/world.hpp" #include "loader/loader.hpp" #include "loader/wall-cell.hpp" -#include #include #include -- cgit v1.2.3