loplugin:constantparam
Change-Id: I114331d1cb7860087d5f5bee77af771e537b0616 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174301 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
3bffef8f40
commit
0210aac7f9
5 changed files with 9 additions and 11 deletions
|
@ -426,22 +426,22 @@ rtl::Reference< ::chart::ChartTypeTemplate > ChartTypeManager::createTemplate(
|
|||
case TEMPLATE_THREEDPIE:
|
||||
xTemplate.set( new PieChartTypeTemplate( m_xContext, aServiceSpecifier,
|
||||
chart2::PieChartOffsetMode_NONE, false,
|
||||
chart2::PieChartSubType_NONE, 2, 3 ));
|
||||
chart2::PieChartSubType_NONE, 3 ));
|
||||
break;
|
||||
case TEMPLATE_THREEDPIEALLEXPLODED:
|
||||
xTemplate.set( new PieChartTypeTemplate( m_xContext, aServiceSpecifier,
|
||||
chart2::PieChartOffsetMode_ALL_EXPLODED, false,
|
||||
chart2::PieChartSubType_NONE, 2, 3 ));
|
||||
chart2::PieChartSubType_NONE, 3 ));
|
||||
break;
|
||||
case TEMPLATE_THREEDDONUT:
|
||||
xTemplate.set( new PieChartTypeTemplate( m_xContext, aServiceSpecifier,
|
||||
chart2::PieChartOffsetMode_NONE, true,
|
||||
chart2::PieChartSubType_NONE, 2, 3 ));
|
||||
chart2::PieChartSubType_NONE, 3 ));
|
||||
break;
|
||||
case TEMPLATE_THREEDDONUTALLEXPLODED:
|
||||
xTemplate.set( new PieChartTypeTemplate( m_xContext, aServiceSpecifier,
|
||||
chart2::PieChartOffsetMode_ALL_EXPLODED, true,
|
||||
chart2::PieChartSubType_NONE, 2, 3 ));
|
||||
chart2::PieChartSubType_NONE, 3 ));
|
||||
break;
|
||||
|
||||
case TEMPLATE_SCATTERLINESYMBOL:
|
||||
|
|
|
@ -61,10 +61,10 @@ namespace chart
|
|||
{
|
||||
HistogramChartTypeTemplate::HistogramChartTypeTemplate(
|
||||
Reference<uno::XComponentContext> const& xContext, const OUString& rServiceName,
|
||||
StackMode eStackMode, sal_Int32 nDim /* = 2 */)
|
||||
StackMode eStackMode)
|
||||
: ChartTypeTemplate(xContext, rServiceName)
|
||||
, m_eStackMode(eStackMode)
|
||||
, m_nDim(nDim)
|
||||
, m_nDim(2)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ class HistogramChartTypeTemplate : public ChartTypeTemplate, public ::property::
|
|||
public:
|
||||
explicit HistogramChartTypeTemplate(
|
||||
css::uno::Reference<css::uno::XComponentContext> const& xContext,
|
||||
const OUString& rServiceName, StackMode eStackMode, sal_Int32 nDim = 2);
|
||||
const OUString& rServiceName, StackMode eStackMode);
|
||||
|
||||
/// merge XInterface implementations
|
||||
DECLARE_XINTERFACE()
|
||||
|
|
|
@ -140,7 +140,6 @@ PieChartTypeTemplate::PieChartTypeTemplate(
|
|||
chart2::PieChartOffsetMode eMode,
|
||||
bool bRings,
|
||||
chart2::PieChartSubType eSubType,
|
||||
sal_Int32 nCompositeSize,
|
||||
sal_Int32 nDim /* = 2 */ ) :
|
||||
ChartTypeTemplate( xContext, rServiceName )
|
||||
{
|
||||
|
@ -148,7 +147,7 @@ PieChartTypeTemplate::PieChartTypeTemplate(
|
|||
setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_DIMENSION, uno::Any( nDim ));
|
||||
setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_USE_RINGS, uno::Any( bRings ));
|
||||
setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_SUB_PIE_TYPE, uno::Any( eSubType ));
|
||||
setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_COMPOSITE_SIZE, uno::Any( nCompositeSize ));
|
||||
setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_COMPOSITE_SIZE, uno::Any( sal_Int32(2) ));
|
||||
}
|
||||
|
||||
PieChartTypeTemplate::~PieChartTypeTemplate()
|
||||
|
|
|
@ -39,8 +39,7 @@ public:
|
|||
css::chart2::PieChartOffsetMode eMode,
|
||||
bool bRings,
|
||||
css::chart2::PieChartSubType eSubType,
|
||||
sal_Int32 nCompositeSize,
|
||||
sal_Int32 nDim = 2 );
|
||||
sal_Int32 nDim );
|
||||
virtual ~PieChartTypeTemplate() override;
|
||||
|
||||
/// merge XInterface implementations
|
||||
|
|
Loading…
Reference in a new issue