diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-01 16:38:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-03 10:30:00 +0100 |
commit | 0dca40256320753fdbd42ac9c7de889026d7d469 (patch) | |
tree | 647d059917e22a0b910f7d6d803bd50ad953edcd /vcl/source/filter | |
parent | b477f791e3e332b41c80782844c4c379212f0fd8 (diff) |
loplugin:constparam in vcl,svtools
Change-Id: I7a3eb2bfda869e9e66db919f929ead60cf8890a4
Reviewed-on: https://gerrit.libreoffice.org/44209
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r-- | vcl/source/filter/jpeg/JpegReader.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/jpeg/JpegReader.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
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; } }; |