diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 11:47:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 14:51:56 +0200 |
commit | b09deb075319c1c19f91e3a6f64429b61682ebf8 (patch) | |
tree | 9e73d1e63092083a337a4ddf1dfe962b4f6ef4dc /vcl/source/filter/jpeg/JpegWriter.cxx | |
parent | 587d6e13df7bb9c8f78ce605ebb8f8fd34b85a2c (diff) |
loplugin:constparams handle constructors
had to change the structure of the plugin considerably, was too messy to
structure it to do the calculations on a per-function basis
Change-Id: I4edee7735f726101105c607368124a08dba21086
Reviewed-on: https://gerrit.libreoffice.org/40516
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/filter/jpeg/JpegWriter.cxx')
-rw-r--r-- | vcl/source/filter/jpeg/JpegWriter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/jpeg/JpegWriter.cxx b/vcl/source/filter/jpeg/JpegWriter.cxx index eff1bacd2ddb..1cf302312b22 100644 --- a/vcl/source/filter/jpeg/JpegWriter.cxx +++ b/vcl/source/filter/jpeg/JpegWriter.cxx @@ -109,7 +109,7 @@ JPEGWriter::JPEGWriter( SvStream& rStream, const css::uno::Sequence< css::beans: mbNative ( false ), mpExpWasGrey ( pExportWasGrey ) { - FilterConfigItem aConfigItem( const_cast<css::uno::Sequence< css::beans::PropertyValue >*>(pFilterData) ); + FilterConfigItem aConfigItem( pFilterData ); mbGreys = aConfigItem.ReadInt32( "ColorMode", 0 ) != 0; mnQuality = aConfigItem.ReadInt32( "Quality", 75 ); maChromaSubsampling = aConfigItem.ReadInt32( "ChromaSubsamplingMode", 0 ); |