diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 08:45:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-01 11:20:24 +0200 |
commit | 3da977def7fa97e791c279c05de6b2e06b79fcd4 (patch) | |
tree | 84108dab6fff3cc11b0b085019bd67e23adf6a6a /tools/source/generic/color.cxx | |
parent | 436aea863573b358e491f48b20af02ab0f5eb2eb (diff) |
loplugin:unuseddefaultparam in tools
Change-Id: I2a974ba76566700c2037fcb38de3ecfea9d2651d
Diffstat (limited to 'tools/source/generic/color.cxx')
-rw-r--r-- | tools/source/generic/color.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index 7692d011d611..e4d5945921fd 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -212,23 +212,15 @@ ColorData Color::HSBtoRGB( sal_uInt16 nHue, sal_uInt16 nSat, sal_uInt16 nBri ) return RGB_COLORDATA( cR, cG, cB ); } -SvStream& Color::Read( SvStream& rIStm, bool bNewFormat ) +SvStream& Color::Read( SvStream& rIStm ) { - if ( bNewFormat ) - rIStm.ReadUInt32( mnColor ); - else - ReadColor( rIStm, *this ); - + rIStm.ReadUInt32( mnColor ); return rIStm; } -SvStream& Color::Write( SvStream& rOStm, bool bNewFormat ) const +SvStream& Color::Write( SvStream& rOStm ) const { - if ( bNewFormat ) - rOStm.WriteUInt32( mnColor ); - else - WriteColor( rOStm, *this ); - + rOStm.WriteUInt32( mnColor ); return rOStm; } |