diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-02 16:22:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-02 16:53:30 +0000 |
commit | fd6986343521bc182cb26ae974dbd7b6a7e8ef25 (patch) | |
tree | a36910fa049bbdf7f42e659fba870512fd6abbb1 /sw/source/uibase/docvw/HeaderFooterWin.cxx | |
parent | 88a031e593e0a16881132b08d162ed40a5549d23 (diff) |
V813: Decreased performance
Change-Id: I49c022b29a2771b5091ba04b85e5117773730b85
Diffstat (limited to 'sw/source/uibase/docvw/HeaderFooterWin.cxx')
-rw-r--r-- | sw/source/uibase/docvw/HeaderFooterWin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index 6ac23cc79cfc..53c7c2825772 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -60,9 +60,9 @@ using namespace drawinglayer::attribute; namespace { - static basegfx::BColor lcl_GetFillColor( basegfx::BColor aLineColor ) + static basegfx::BColor lcl_GetFillColor(const basegfx::BColor& rLineColor) { - basegfx::BColor aHslLine = basegfx::tools::rgb2hsl( aLineColor ); + basegfx::BColor aHslLine = basegfx::tools::rgb2hsl(rLineColor); double nLuminance = aHslLine.getZ() * 2.5; if ( nLuminance == 0 ) nLuminance = 0.5; @@ -72,9 +72,9 @@ namespace return basegfx::tools::hsl2rgb( aHslLine ); } - static basegfx::BColor lcl_GetLighterGradientColor( basegfx::BColor aDarkColor ) + static basegfx::BColor lcl_GetLighterGradientColor(const basegfx::BColor& rDarkColor) { - basegfx::BColor aHslDark = basegfx::tools::rgb2hsl( aDarkColor ); + basegfx::BColor aHslDark = basegfx::tools::rgb2hsl(rDarkColor); double nLuminance = aHslDark.getZ() * 255 + 20; aHslDark.setZ( nLuminance / 255.0 ); return basegfx::tools::hsl2rgb( aHslDark ); |