diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-19 10:52:20 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-19 11:23:57 +0000 |
commit | 778e9a65bf5af07c4caeff969a0324e43a78e66b (patch) | |
tree | a5204f0d3eaf2f512a627eeb9e74d42e7e80b54f /slideshow | |
parent | 541c4c4509863beb7babe361b31e27f7295e3069 (diff) |
new loplugin: find write-only fields
Change-Id: I0f83939babacf92485420ee63f290a297d7cb717
Reviewed-on: https://gerrit.libreoffice.org/22498
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/color.cxx | 12 | ||||
-rw-r--r-- | slideshow/source/inc/hslcolor.hxx | 2 |
2 files changed, 3 insertions, 11 deletions
diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx index e979b9421812..374508393753 100644 --- a/slideshow/source/engine/color.cxx +++ b/slideshow/source/engine/color.cxx @@ -170,25 +170,19 @@ namespace slideshow } HSLColor::HSLColor() : - maHSLTriple( 0.0, 0.0, 0.0 ), - mnMagicValue( getMagic( maHSLTriple.mnLuminance, - maHSLTriple.mnSaturation ) ) + maHSLTriple( 0.0, 0.0, 0.0 ) { } HSLColor::HSLColor( double nHue, double nSaturation, double nLuminance ) : - maHSLTriple( nHue, nSaturation, nLuminance ), - mnMagicValue( getMagic( maHSLTriple.mnLuminance, - maHSLTriple.mnSaturation ) ) + maHSLTriple( nHue, nSaturation, nLuminance ) { } HSLColor::HSLColor( const RGBColor& rColor ) : maHSLTriple( rgb2hsl( truncateRangeStd( rColor.getRed() ), truncateRangeStd( rColor.getGreen() ), - truncateRangeStd( rColor.getBlue() ) ) ), - mnMagicValue( getMagic( maHSLTriple.mnLuminance, - maHSLTriple.mnSaturation ) ) + truncateRangeStd( rColor.getBlue() ) ) ) { } diff --git a/slideshow/source/inc/hslcolor.hxx b/slideshow/source/inc/hslcolor.hxx index c38a8f7023d3..96461c08bace 100644 --- a/slideshow/source/inc/hslcolor.hxx +++ b/slideshow/source/inc/hslcolor.hxx @@ -75,8 +75,6 @@ namespace slideshow HSLTriple maHSLTriple; - /// Pre-calculated value, needed for conversion back to RGB - double mnMagicValue; }; bool operator==( const HSLColor& rLHS, const HSLColor& rRHS ); |