diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-01-20 13:05:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-20 16:55:29 +0100 |
commit | 74d1991352bc21ec46759a932887e08a25bb5387 (patch) | |
tree | 7190b5083a08e1e3d9c07727917a45834f4a01dd /vcl | |
parent | 28fe41b0da74da5795d759c098840fabe8a8c0b6 (diff) |
Use properly typed var to iterate over FPDF_GetPageCount
...which, according to <https://pdfium.patagames.com/help/html/
M_Patagames_Pdf_Pdfium_FPDF_GetPageCount.htm>, returns int. The code had oddly
been like this since it was introduced with
9194f019afb0599d5e72476786fabfa996e07f20 "pdfium: Import PDF with unloaded
images."
Change-Id: If8aad3c0bfbecdedea9511cff17e125fb1938f90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87067
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/ipdf/pdfread.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx index 6ace744ec1eb..38c53fc36fc0 100644 --- a/vcl/source/filter/ipdf/pdfread.cxx +++ b/vcl/source/filter/ipdf/pdfread.cxx @@ -325,7 +325,7 @@ size_t ImportPDFUnloaded(const OUString& rURL, std::vector<std::pair<Graphic, Si // dummy Bitmap Bitmap aBitmap(Size(1, 1), 24); - for (size_t nPageIndex = 0; nPageIndex < static_cast<size_t>(nPageCount); ++nPageIndex) + for (int nPageIndex = 0; nPageIndex < nPageCount; ++nPageIndex) { double fPageWidth = 0; double fPageHeight = 0; |