aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/JSONHandler.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-30 19:45:02 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-31 21:57:45 +0100
commit3b60224bae16f36e0b6caf13fe1e119b9fa1f6b1 (patch)
treeafdaac0f93751a9ec3d689ab08f18a34ca6f4679 /libqpdf/JSONHandler.cc
parentb74e7989c34e041e7a6461e00ae045045273ca51 (diff)
downloadqpdf-3b60224bae16f36e0b6caf13fe1e119b9fa1f6b1.tar.zst
JSONHandler: pass JSON object to array start function
Diffstat (limited to 'libqpdf/JSONHandler.cc')
-rw-r--r--libqpdf/JSONHandler.cc4
1 files changed, 2 insertions, 2 deletions
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<JSONHandler> fdh)
}
void
-JSONHandler::addArrayHandlers(void_handler_t start_fn,
+JSONHandler::addArrayHandlers(json_handler_t start_fn,
void_handler_t end_fn,
std::shared_ptr<JSONHandler> 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(