mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-16 01:27:07 +00:00
Code tidy: remove redundant variable in QPDF::writeJSON
This commit is contained in:
parent
f51e28a094
commit
057bd659bc
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user