From b259614abb24db33d73483fa209c699c42ed8255 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 16 Oct 2026 08:25:39 +0200 Subject: [PATCH] Follow the renames from the review of the view builder The review of #5620 renamed document_data's tape/tape_size/tape_cap to nodes/node_count/node_capacity and made the decode arena a std::vector; adapt the code of this change to it. Signed-off-by: Niels Lohmann --- include/nlohmann/detail/view/object_index.hpp | 2 +- single_include/nlohmann/json_view.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/view/object_index.hpp b/include/nlohmann/detail/view/object_index.hpp index 8888f2345..c77fa6348 100644 --- a/include/nlohmann/detail/view/object_index.hpp +++ b/include/nlohmann/detail/view/object_index.hpp @@ -125,7 +125,7 @@ inline void build_object_indexes(document_data& d) { for (const std::uint32_t i : d.large_objects) { - build_object_index(d, d.tape + i); + build_object_index(d, d.nodes + i); } } diff --git a/single_include/nlohmann/json_view.hpp b/single_include/nlohmann/json_view.hpp index a5625be4e..c9a72ddad 100644 --- a/single_include/nlohmann/json_view.hpp +++ b/single_include/nlohmann/json_view.hpp @@ -3225,7 +3225,7 @@ inline void build_object_indexes(document_data& d) { for (const std::uint32_t i : d.large_objects) { - build_object_index(d, d.tape + i); + build_object_index(d, d.nodes + i); } }