aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-custom-filter.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-07-24 15:16:37 +0200
committerm-holger <m-holger@kubitscheck.org>2022-07-24 17:02:35 +0200
commitafd35f9a30e35011e82fef45b65cfae702a006a4 (patch)
tree0b06071beb79d85d034e83691f9c287deba371fc /examples/pdf-custom-filter.cc
parent5d0469f1bcbe1c4d008e71bc690273198805a405 (diff)
downloadqpdf-afd35f9a30e35011e82fef45b65cfae702a006a4.tar.zst
Overload StreamDataProvider::provideStreamData
Use 'QPDFObjGen const&' instead of 'int, int' in signature.
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