[Libreoffice-commits] core.git: include/vcl

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 25 06:58:52 UTC 2019


 include/vcl/pdfread.hxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit b1dd4244b60948a6dd84872799e508effa164cba
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Tue Sep 24 21:18:43 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Wed Sep 25 08:58:15 2019 +0200

    vcl: clean up not needed const-qualification of these parameters ...
    
    ... in the function declaration. Const-qualification of these parameters
    only has an effect in function definitions.
    
    Change-Id: I50a7c523ef785508bb51d0763c1367450e6e3a14
    Reviewed-on: https://gerrit.libreoffice.org/79475
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/include/vcl/pdfread.hxx b/include/vcl/pdfread.hxx
index a088ed2c002b..d16c951f81cd 100644
--- a/include/vcl/pdfread.hxx
+++ b/include/vcl/pdfread.hxx
@@ -34,8 +34,8 @@ namespace vcl
 {
 /// Fills the rBitmaps vector with rendered pages.
 VCL_DLLPUBLIC size_t RenderPDFBitmaps(const void* pBuffer, int nSize, std::vector<Bitmap>& rBitmaps,
-                                      const size_t nFirstPage = 0, int nPages = 1,
-                                      const double fResolutionDPI = 96.);
+                                      size_t nFirstPage = 0, int nPages = 1,
+                                      double fResolutionDPI = 96.);
 
 /// Imports a PDF stream into rGraphic as a GDIMetaFile.
 VCL_DLLPUBLIC bool ImportPDF(SvStream& rStream, Bitmap& rBitmap, size_t nPageIndex,
@@ -46,7 +46,7 @@ VCL_DLLPUBLIC bool ImportPDF(SvStream& rStream, Bitmap& rBitmap, size_t nPageInd
 VCL_DLLPUBLIC bool ImportPDF(SvStream& rStream, Graphic& rGraphic, double fResolutionDPI = 96.);
 
 VCL_DLLPUBLIC size_t ImportPDF(const OUString& rURL, std::vector<Bitmap>& rBitmaps,
-                               std::vector<sal_Int8>& rPdfData, const double fResolutionDPI = 96.);
+                               std::vector<sal_Int8>& rPdfData, double fResolutionDPI = 96.);
 
 /// Import PDF as Graphic images (1 per page), all unloaded.
 /// Since Graphic is unloaded, we need to return the page size (in pixels) separately.
@@ -54,7 +54,7 @@ VCL_DLLPUBLIC size_t ImportPDF(const OUString& rURL, std::vector<Bitmap>& rBitma
 /// Returns the number of pages read.
 VCL_DLLPUBLIC size_t ImportPDFUnloaded(const OUString& rURL,
                                        std::vector<std::pair<Graphic, Size>>& rGraphics,
-                                       const double fResolutionDPI = 96.);
+                                       double fResolutionDPI = 96.);
 }
 
 #endif // INCLUDED_VCL_SOURCE_FILTER_IPDF_PDFREAD_HXX


More information about the Libreoffice-commits mailing list