aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
parent5d0469f1bcbe1c4d008e71bc690273198805a405 (diff)
downloadqpdf-afd35f9a30e35011e82fef45b65cfae702a006a4.tar.zst
Overload StreamDataProvider::provideStreamData
Use 'QPDFObjGen const&' instead of 'int, int' in signature.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh3
-rw-r--r--include/qpdf/QPDFObjectHandle.hh10
2 files changed, 10 insertions, 3 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index ae5c89e2..a80ddcd5 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -990,8 +990,7 @@ class QPDF
CopiedStreamDataProvider(QPDF& destination_qpdf);
virtual ~CopiedStreamDataProvider() = default;
virtual bool provideStreamData(
- int objid,
- int generation,
+ QPDFObjGen const& og,
Pipeline* pipeline,
bool suppress_warnings,
bool will_retry) override;
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 68fc78f8..8e33085c 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -116,9 +116,17 @@ class QPDFObjectHandle
// indicating whether it ran without errors.
QPDF_DLL
virtual void
- provideStreamData(int objid, int generation, Pipeline* pipeline);
+ provideStreamData(QPDFObjGen const& og, Pipeline* pipeline);
QPDF_DLL
virtual bool provideStreamData(
+ QPDFObjGen const& og,
+ Pipeline* pipeline,
+ bool suppress_warnings,
+ bool will_retry);
+ // The following two overloads are deprecated.
+ QPDF_DLL virtual void
+ provideStreamData(int objid, int generation, Pipeline* pipeline);
+ QPDF_DLL virtual bool provideStreamData(
int objid,
int generation,
Pipeline* pipeline,