From 0dca40256320753fdbd42ac9c7de889026d7d469 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 1 Nov 2017 16:38:15 +0200 Subject: loplugin:constparam in vcl,svtools Change-Id: I7a3eb2bfda869e9e66db919f929ead60cf8890a4 Reviewed-on: https://gerrit.libreoffice.org/44209 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/filter/jpeg/JpegReader.cxx | 2 +- vcl/source/filter/jpeg/JpegReader.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source/filter') diff --git a/vcl/source/filter/jpeg/JpegReader.cxx b/vcl/source/filter/jpeg/JpegReader.cxx index 604b182b5bb1..7c0aecd5fa47 100644 --- a/vcl/source/filter/jpeg/JpegReader.cxx +++ b/vcl/source/filter/jpeg/JpegReader.cxx @@ -180,7 +180,7 @@ JPEGReader::~JPEGReader() { } -bool JPEGReader::CreateBitmap(JPEGCreateBitmapParam& rParam) +bool JPEGReader::CreateBitmap(JPEGCreateBitmapParam const & rParam) { if (rParam.nWidth > SAL_MAX_INT32 / 8 || rParam.nHeight > SAL_MAX_INT32 / 8) return false; // avoid overflows later diff --git a/vcl/source/filter/jpeg/JpegReader.hxx b/vcl/source/filter/jpeg/JpegReader.hxx index 6c4f1dc3803b..84ad8c2a718c 100644 --- a/vcl/source/filter/jpeg/JpegReader.hxx +++ b/vcl/source/filter/jpeg/JpegReader.hxx @@ -64,7 +64,7 @@ public: ReadState Read(Graphic& rGraphic, GraphicFilterImportFlags nImportFlags, Bitmap::ScopedWriteAccess* ppAccess); - bool CreateBitmap(JPEGCreateBitmapParam& param); + bool CreateBitmap(JPEGCreateBitmapParam const & param); Bitmap& GetBitmap() { return *mpBitmap; } }; -- cgit v1.2.3