diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-04 13:41:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-04 14:01:19 +0200 |
commit | 1fd781e7cd33f325ec7e467ecd49e0cb6ff4762b (patch) | |
tree | 9ede2ca7b2f7336365f675d9388dafc2a1994be6 /oox/source/drawingml/textcharacterproperties.cxx | |
parent | a4c17041271eca2181cf11e5a0b59f4001c20cee (diff) |
loplugin:unuseddefaultparam in oox/reportdesign/sd
Change-Id: Ia26cf182ddc7c903d86bf74a8175858adb88121c
Diffstat (limited to 'oox/source/drawingml/textcharacterproperties.cxx')
-rw-r--r-- | oox/source/drawingml/textcharacterproperties.cxx | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/oox/source/drawingml/textcharacterproperties.cxx b/oox/source/drawingml/textcharacterproperties.cxx index acf337ee1a8b..3d71c2db5824 100644 --- a/oox/source/drawingml/textcharacterproperties.cxx +++ b/oox/source/drawingml/textcharacterproperties.cxx @@ -66,7 +66,7 @@ void TextCharacterProperties::assignUsed( const TextCharacterProperties& rSource maGradientProps.assignUsed( rSourceProps.maGradientProps ); } -void TextCharacterProperties::pushToPropMap( PropertyMap& rPropMap, const XmlFilterBase& rFilter, bool bUseOptional ) const +void TextCharacterProperties::pushToPropMap( PropertyMap& rPropMap, const XmlFilterBase& rFilter ) const { OUString aFontName; sal_Int16 nFontPitch = 0; @@ -140,19 +140,15 @@ void TextCharacterProperties::pushToPropMap( PropertyMap& rPropMap, const XmlFil rPropMap.setProperty( PROP_CharEscapementHeight, sal_Int8(100)); // 100% } - if( !bUseOptional || moBold.has() ) { - float fWeight = moBold.get( false ) ? awt::FontWeight::BOLD : awt::FontWeight::NORMAL; - rPropMap.setProperty( PROP_CharWeight, fWeight); - rPropMap.setProperty( PROP_CharWeightAsian, fWeight); - rPropMap.setProperty( PROP_CharWeightComplex, fWeight); - } + float fWeight = moBold.get( false ) ? awt::FontWeight::BOLD : awt::FontWeight::NORMAL; + rPropMap.setProperty( PROP_CharWeight, fWeight); + rPropMap.setProperty( PROP_CharWeightAsian, fWeight); + rPropMap.setProperty( PROP_CharWeightComplex, fWeight); - if( !bUseOptional || moItalic.has() ) { - awt::FontSlant eSlant = moItalic.get( false ) ? awt::FontSlant_ITALIC : awt::FontSlant_NONE; - rPropMap.setProperty( PROP_CharPosture, eSlant); - rPropMap.setProperty( PROP_CharPostureAsian, eSlant); - rPropMap.setProperty( PROP_CharPostureComplex, eSlant); - } + awt::FontSlant eSlant = moItalic.get( false ) ? awt::FontSlant_ITALIC : awt::FontSlant_NONE; + rPropMap.setProperty( PROP_CharPosture, eSlant); + rPropMap.setProperty( PROP_CharPostureAsian, eSlant); + rPropMap.setProperty( PROP_CharPostureComplex, eSlant); bool bUnderlineFillFollowText = moUnderlineFillFollowText.get( false ); if( moUnderline.has() && maUnderlineColor.isUsed() && !bUnderlineFillFollowText ) |