From 0d051730156f633150fa9e3107fe97cf7be6d8f9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 15 Nov 2016 09:13:33 +0200 Subject: loplugin:constantparam Change-Id: Iced8ff99d52d55e6b6c3126affafbea6786e94f0 Reviewed-on: https://gerrit.libreoffice.org/30858 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/chart/ColorPropertySet.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/chart/ColorPropertySet.cxx b/xmloff/source/chart/ColorPropertySet.cxx index cba1746a9135..0494864d1631 100644 --- a/xmloff/source/chart/ColorPropertySet.cxx +++ b/xmloff/source/chart/ColorPropertySet.cxx @@ -36,7 +36,7 @@ class lcl_ColorPropertySetInfo : public ::cppu::WeakImplHelper< XPropertySetInfo > { public: - explicit lcl_ColorPropertySetInfo( bool bFillColor ); + explicit lcl_ColorPropertySetInfo(); protected: // ____ XPropertySetInfo ____ @@ -49,9 +49,9 @@ private: Property m_aColorProp; }; -lcl_ColorPropertySetInfo::lcl_ColorPropertySetInfo( bool bFillColor ) : +lcl_ColorPropertySetInfo::lcl_ColorPropertySetInfo() : // note: length of FillColor and LineColor is 9 - m_aColorPropName( (bFillColor ? "FillColor" : "LineColor"), 9, RTL_TEXTENCODING_ASCII_US ), + m_aColorPropName( "FillColor", 9, RTL_TEXTENCODING_ASCII_US ), m_aColorProp( m_aColorPropName, -1, cppu::UnoType::get(), 0) {} @@ -100,7 +100,7 @@ Reference< XPropertySetInfo > SAL_CALL ColorPropertySet::getPropertySetInfo() throw (uno::RuntimeException, std::exception) { if( ! m_xInfo.is()) - m_xInfo.set( new lcl_ColorPropertySetInfo( true/*bIsFillColor*/ )); + m_xInfo.set( new lcl_ColorPropertySetInfo ); return m_xInfo; } -- cgit