summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-15 09:13:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-15 12:56:26 +0000
commit0d051730156f633150fa9e3107fe97cf7be6d8f9 (patch)
tree73a29cd8f7f6c3630088c74f52cb53c948eb4ba5 /xmloff/source
parentd2e9d3d0ed42f0fc24255c64546d8d256ca33aae (diff)
loplugin:constantparam
Change-Id: Iced8ff99d52d55e6b6c3126affafbea6786e94f0 Reviewed-on: https://gerrit.libreoffice.org/30858 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/chart/ColorPropertySet.cxx8
1 files changed, 4 insertions, 4 deletions
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<sal_Int32>::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;
}