diff options
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDF_json.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/QPDF_json.cc b/libqpdf/QPDF_json.cc index 7af458d1..1db9018c 100644 --- a/libqpdf/QPDF_json.cc +++ b/libqpdf/QPDF_json.cc @@ -790,8 +790,7 @@ QPDF::writeJSON( bool first_object = true; JSON::writeDictionaryOpen(p, first_object, 2); bool all_objects = wanted_objects.empty(); - std::vector<QPDFObjectHandle> objects = getAllObjects(); - for (auto& obj: objects) { + for (auto& obj: getAllObjects()) { std::string key = "obj:" + obj.unparse(); if (all_objects || wanted_objects.count(key)) { if (obj.isStream()) { |