aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_json.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-08-06 20:23:56 +0200
committerGitHub <noreply@github.com>2022-08-06 20:23:56 +0200
commita3037ca440e2a7cf9b5d377c932f2d322f31dace (patch)
tree94037a91955dc18b326775e9a7daa3b87c0138a8 /libqpdf/QPDF_json.cc
parent8095006668dc2e9634f55885ae44b8538a39361e (diff)
parent1553868c4ada61c79b92729dc2bd22d21c319d0d (diff)
downloadqpdf-a3037ca440e2a7cf9b5d377c932f2d322f31dace.tar.zst
Merge pull request #739 from m-holger/getobject
Add QPDF::getObject to replace getObjectByObjGen and getObjectByID
Diffstat (limited to 'libqpdf/QPDF_json.cc')
-rw-r--r--libqpdf/QPDF_json.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_json.cc b/libqpdf/QPDF_json.cc
index a3d50cfb..1898e728 100644
--- a/libqpdf/QPDF_json.cc
+++ b/libqpdf/QPDF_json.cc
@@ -394,7 +394,7 @@ QPDF::JSONReactor::replaceObject(
auto og = to_replace.getObjGen();
this->reserved.erase(og);
this->pdf.replaceObject(og, replacement);
- auto oh = pdf.getObjectByObjGen(og);
+ auto oh = pdf.getObject(og);
setObjectDescription(oh, value);
}