diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-03 09:36:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-03 10:29:57 +0200 |
commit | 101a9b4a3fcf1fd0a7163dac3a5dcd69431f4fee (patch) | |
tree | 29039a491e9ca058bd3ea9114bf8889ce8089ebc /vcl/source/filter | |
parent | 55220e7bc6576a7575c675ba425e757a3aefa243 (diff) |
loplugin:constantparam
Change-Id: I9cdd15185cfa8347a08402da956eab7cbdd63de6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91609
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r-- | vcl/source/filter/ipdf/pdfread.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx index 187bc459c2f9..b6e4f8936d8c 100644 --- a/vcl/source/filter/ipdf/pdfread.cxx +++ b/vcl/source/filter/ipdf/pdfread.cxx @@ -70,9 +70,10 @@ bool isCompatible(SvStream& rInStream, sal_uInt64 nPos, sal_uInt64 nSize) /// Takes care of transparently downgrading the version of the PDF stream in /// case it's too new for our PDF export. -bool getCompatibleStream(SvStream& rInStream, SvStream& rOutStream, sal_uInt64 nPos, - sal_uInt64 nSize) +bool getCompatibleStream(SvStream& rInStream, SvStream& rOutStream) { + sal_uInt64 nPos = STREAM_SEEK_TO_BEGIN; + sal_uInt64 nSize = STREAM_SEEK_TO_END; bool bCompatible = isCompatible(rInStream, nPos, nSize); rInStream.Seek(nPos); if (bCompatible) @@ -129,7 +130,7 @@ VectorGraphicDataArray createVectorGraphicDataArray(SvStream& rStream) { // Save the original PDF stream for later use. SvMemoryStream aMemoryStream; - if (!getCompatibleStream(rStream, aMemoryStream, STREAM_SEEK_TO_BEGIN, STREAM_SEEK_TO_END)) + if (!getCompatibleStream(rStream, aMemoryStream)) return VectorGraphicDataArray(); const sal_uInt32 nStreamLength = aMemoryStream.TellEnd(); |