aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-custom-filter.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-07-24 20:41:33 +0200
committerGitHub <noreply@github.com>2022-07-24 20:41:33 +0200
commit5696a507b6dacf34d066810a3f2fca3525eb02f5 (patch)
treeb0009760e0f76c28aa99581e4bc6087adf93749f /examples/pdf-custom-filter.cc
parent6f1041afb8e6d1f57169cd4c79f42a7c1ce94da8 (diff)
parent8b4afa428e9caa1a34cad434dfe8a3e01e5a24d3 (diff)
downloadqpdf-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.cc5
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