summaryrefslogtreecommitdiff
path: root/filter/source/msfilter/escherex.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 09:47:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 13:29:03 +0100
commit7383ab517030db0c2d7bf4f393f38743fbcaba04 (patch)
tree7d984b86256ea53d10d305d3ce392dca68b59347 /filter/source/msfilter/escherex.cxx
parent29adb38857d1b1cfb486d5da958b12895a1e6120 (diff)
loplugin:constantparam in f*
Change-Id: I87145db3af6c3eb180cea6b4244f98b00205a306 Reviewed-on: https://gerrit.libreoffice.org/44095 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/msfilter/escherex.cxx')
-rw-r--r--filter/source/msfilter/escherex.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 5075c342bbd5..9a83f2697ea8 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -5315,15 +5315,12 @@ sal_uInt32 EscherEx::GetColor( const sal_uInt32 nSOColor )
return nColor;
}
-sal_uInt32 EscherEx::GetColor( const Color& rSOColor, bool bSwap )
+sal_uInt32 EscherEx::GetColor( const Color& rSOColor )
{
sal_uInt32 nColor = ( rSOColor.GetRed() << 16 );
nColor |= ( rSOColor.GetGreen() << 8 );
nColor |= rSOColor.GetBlue();
-
- if ( !bSwap )
- nColor = GetColor( nColor );
-
+ nColor = GetColor( nColor );
return nColor;
}