From c40c2d41de2bedd59ebc859a6fcc3a67c7e0b6b2 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 7 Oct 2024 10:44:23 +0200 Subject: [PATCH] test: const correctness --- test/entt/entity/view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/entt/entity/view.cpp b/test/entt/entity/view.cpp index 76c612c73..a2abf49e9 100644 --- a/test/entt/entity/view.cpp +++ b/test/entt/entity/view.cpp @@ -116,7 +116,7 @@ TEST(SingleStorageView, Handle) { entt::basic_view view{storage}; const entt::entity entity{0}; - auto *handle = view.handle(); + const auto *handle = view.handle(); ASSERT_NE(handle, nullptr); @@ -726,7 +726,7 @@ TEST(MultiStorageView, Handle) { std::tuple, entt::storage> storage{}; entt::basic_view view{std::get<0>(storage), std::get<1>(storage)}; - auto *handle = view.handle(); + const auto *handle = view.handle(); const entt::entity entity{0}; ASSERT_NE(handle, nullptr);