diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-28 11:15:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-29 09:00:52 +0200 |
commit | 6dbae37b8d2d2d1ecad85c772fd684803b5a52cb (patch) | |
tree | cb6637327913a5f9641c2c0065de4c6a00983947 /chart2/source | |
parent | dc06c8f4989fc28d0c31ebd333e53dfe0e0f5f66 (diff) |
loplugin:constantparam (1)
Change-Id: I25077e391ecca1b678062d261a83d88daadf0a58
Reviewed-on: https://gerrit.libreoffice.org/59701
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/model/template/ScatterChartType.cxx | 14 | ||||
-rw-r--r-- | chart2/source/model/template/ScatterChartType.hxx | 5 |
2 files changed, 2 insertions, 17 deletions
diff --git a/chart2/source/model/template/ScatterChartType.cxx b/chart2/source/model/template/ScatterChartType.cxx index 749a3e049c9d..fb73766efb75 100644 --- a/chart2/source/model/template/ScatterChartType.cxx +++ b/chart2/source/model/template/ScatterChartType.cxx @@ -136,20 +136,8 @@ struct StaticScatterChartTypeInfo : public rtl::StaticAggregate< uno::Reference< namespace chart { -ScatterChartType::ScatterChartType( - chart2::CurveStyle eCurveStyle /* chart2::CurveStyle_LINES */ , - sal_Int32 nResolution /* = 20 */, - sal_Int32 nOrder /* = 3 */ ) +ScatterChartType::ScatterChartType() { - if( eCurveStyle != chart2::CurveStyle_LINES ) - setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_CURVE_STYLE, - uno::Any( eCurveStyle )); - if( nResolution != 20 ) - setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_CURVE_RESOLUTION, - uno::Any( nResolution )); - if( nOrder != 3 ) - setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_SPLINE_ORDER, - uno::Any( nOrder )); } ScatterChartType::ScatterChartType( const ScatterChartType & rOther ) : diff --git a/chart2/source/model/template/ScatterChartType.hxx b/chart2/source/model/template/ScatterChartType.hxx index cf61b9421537..28a7aab24488 100644 --- a/chart2/source/model/template/ScatterChartType.hxx +++ b/chart2/source/model/template/ScatterChartType.hxx @@ -28,10 +28,7 @@ namespace chart class ScatterChartType final : public ChartType { public: - ScatterChartType( - css::chart2::CurveStyle eCurveStyle = css::chart2::CurveStyle_LINES, - sal_Int32 nResolution = 20, - sal_Int32 nOrder = 3 ); + ScatterChartType(); virtual ~ScatterChartType() override; virtual OUString SAL_CALL |