From 28cb669b1fb4acaa16a62b8031d29a2eac7505c6 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 4 Nov 2026 08:01:27 +0100 Subject: [PATCH] Make the BJData reader in the lookup test const (misc-const-correctness) Signed-off-by: Niels Lohmann --- tests/src/unit-bjdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-bjdata.cpp b/tests/src/unit-bjdata.cpp index 6c5c9c65c..4885de2d8 100644 --- a/tests/src/unit-bjdata.cpp +++ b/tests/src/unit-bjdata.cpp @@ -85,7 +85,7 @@ TEST_CASE("BJData") // the markers BJData excludes as optimized types must match // binary_writer's is_bjdata_excluded_type_marker(), which encodes the // same 8 markers - reader_t reader(nlohmann::detail::input_adapter(data), json::input_format_t::bjdata); + const reader_t reader(nlohmann::detail::input_adapter(data), json::input_format_t::bjdata); for (const char marker : {'[', '{', 'S', 'H', 'T', 'F', 'N', 'Z', 'x' })