From 3b60224bae16f36e0b6caf13fe1e119b9fa1f6b1 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 30 Jan 2022 13:45:02 -0500 Subject: JSONHandler: pass JSON object to array start function --- libqpdf/JSONHandler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libqpdf/JSONHandler.cc') diff --git a/libqpdf/JSONHandler.cc b/libqpdf/JSONHandler.cc index 121ae8a2..7e69d764 100644 --- a/libqpdf/JSONHandler.cc +++ b/libqpdf/JSONHandler.cc @@ -69,7 +69,7 @@ JSONHandler::addFallbackDictHandler(std::shared_ptr fdh) } void -JSONHandler::addArrayHandlers(void_handler_t start_fn, +JSONHandler::addArrayHandlers(json_handler_t start_fn, void_handler_t end_fn, std::shared_ptr ah) { @@ -144,7 +144,7 @@ JSONHandler::handle(std::string const& path, JSON j) } if (this->m->h.array_start_handler && j.isArray()) { - this->m->h.array_start_handler(path); + this->m->h.array_start_handler(path, j); size_t i = 0; j.forEachArrayItem([&i, &path, this](JSON v) { this->m->h.array_item_handler->handle( -- cgit v1.2.3-54-g00ecf