diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-07-24 20:41:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-24 20:41:33 +0200 |
commit | 5696a507b6dacf34d066810a3f2fca3525eb02f5 (patch) | |
tree | b0009760e0f76c28aa99581e4bc6087adf93749f /examples/pdf-custom-filter.cc | |
parent | 6f1041afb8e6d1f57169cd4c79f42a7c1ce94da8 (diff) | |
parent | 8b4afa428e9caa1a34cad434dfe8a3e01e5a24d3 (diff) | |
download | qpdf-5696a507b6dacf34d066810a3f2fca3525eb02f5.tar.zst |
Merge pull request #731 from m-holger/og_unparse
Tidy QPDFObjGen related code
Diffstat (limited to 'examples/pdf-custom-filter.cc')
-rw-r--r-- | examples/pdf-custom-filter.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/pdf-custom-filter.cc b/examples/pdf-custom-filter.cc index ede4a19c..e7877bea 100644 --- a/examples/pdf-custom-filter.cc +++ b/examples/pdf-custom-filter.cc @@ -201,7 +201,7 @@ class StreamReplacer: public QPDFObjectHandle::StreamDataProvider StreamReplacer(QPDF* pdf); virtual ~StreamReplacer() = default; virtual void - provideStreamData(int objid, int generation, Pipeline* pipeline) override; + provideStreamData(QPDFObjGen const& og, Pipeline* pipeline) override; void registerStream( QPDFObjectHandle stream, @@ -384,9 +384,8 @@ StreamReplacer::registerStream( } void -StreamReplacer::provideStreamData(int objid, int generation, Pipeline* pipeline) +StreamReplacer::provideStreamData(QPDFObjGen const& og, Pipeline* pipeline) { - QPDFObjGen og(objid, generation); QPDFObjectHandle orig = this->copied_streams[og]; // call maybeReplace again, this time with the pipeline and no // dict_updates. In this mode, maybeReplace doesn't make any |