From aefb8ff9efe06b6a596fac8140daea605ff149ff Mon Sep 17 00:00:00 2001 From: m-holger Date: Sun, 8 Jan 2023 16:08:27 +0000 Subject: Refactor QPDFWriter::writePad --- include/qpdf/QPDFWriter.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index 56771e18..af6c15be 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -557,7 +557,7 @@ class QPDFWriter void writeBuffer(std::shared_ptr&); void writeStringQDF(std::string const& str); void writeStringNoQDF(std::string const& str); - void writePad(int nspaces); + void writePad(size_t nspaces); void assignCompressedObjectNumbers(QPDFObjGen const& og); void enqueueObject(QPDFObjectHandle object); void writeObjectStreamOffsets( @@ -676,7 +676,7 @@ class QPDFWriter qpdf_offset_t hint_length, bool skip_compression, int linearization_pass); - int calculateXrefStreamPadding(qpdf_offset_t xref_bytes); + size_t calculateXrefStreamPadding(qpdf_offset_t xref_bytes); // When filtering subsections, push additional pipelines to the // stack. When ready to switch, activate the pipeline stack. When -- cgit v1.2.3-70-g09d2