From afd35f9a30e35011e82fef45b65cfae702a006a4 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sun, 24 Jul 2022 14:16:37 +0100 Subject: Overload StreamDataProvider::provideStreamData Use 'QPDFObjGen const&' instead of 'int, int' in signature. --- examples/pdf-custom-filter.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/pdf-custom-filter.cc') 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 -- cgit v1.2.3-54-g00ecf