diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 20:38:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 07:57:38 +0200 |
commit | f69585c35411ca74e17bb6cd1cf535489472a4c2 (patch) | |
tree | b5a8f3df94dea50d1f6bf498041e8f0bc7cb3fbd /chart2/source/inc | |
parent | 33265f52dfa6a4612156288a170a8e41cff2cfd8 (diff) |
loplugin:unuseddefaultparams in chart2
Change-Id: I03a3580fdbd1f6cf08af329b07edcfe09ecbb9aa
Diffstat (limited to 'chart2/source/inc')
-rw-r--r-- | chart2/source/inc/DataSourceHelper.hxx | 3 | ||||
-rw-r--r-- | chart2/source/inc/DiagramHelper.hxx | 22 | ||||
-rw-r--r-- | chart2/source/inc/RelativePositionHelper.hxx | 18 | ||||
-rw-r--r-- | chart2/source/inc/StatisticsHelper.hxx | 6 | ||||
-rw-r--r-- | chart2/source/inc/ThreeDHelper.hxx | 2 |
5 files changed, 18 insertions, 33 deletions
diff --git a/chart2/source/inc/DataSourceHelper.hxx b/chart2/source/inc/DataSourceHelper.hxx index c58fa2587dee..4ad1a289a4e3 100644 --- a/chart2/source/inc/DataSourceHelper.hxx +++ b/chart2/source/inc/DataSourceHelper.hxx @@ -82,8 +82,7 @@ public: static ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource > pressUsedDataIntoRectangularFormat( const ::com::sun::star::uno::Reference< - ::com::sun::star::chart2::XChartDocument >& xChartDoc, - bool bWithCategories = true ); + ::com::sun::star::chart2::XChartDocument >& xChartDoc ); SAL_DLLPRIVATE static ::com::sun::star::uno::Sequence< OUString > getUsedDataRanges( const ::com::sun::star::uno::Reference< diff --git a/chart2/source/inc/DiagramHelper.hxx b/chart2/source/inc/DiagramHelper.hxx index fa168fb87327..cbd78081edc8 100644 --- a/chart2/source/inc/DiagramHelper.hxx +++ b/chart2/source/inc/DiagramHelper.hxx @@ -60,11 +60,6 @@ public: /** tries to find a template in the chart-type manager that matches the given diagram. - @param rPreferredTemplateName - Check this template first. This may speed up searching, if the - caller assumes a certain template as most likely to be the one that - matches. - @return A pair containing a template with the correct properties set as first entry and the service name of the templateas second entry. If @@ -75,8 +70,7 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram > & xDiagram, const ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XMultiServiceFactory > & xChartTypeManager, - const OUString & rPreferredTemplateName = OUString()); + ::com::sun::star::lang::XMultiServiceFactory > & xChartTypeManager); /** Sets the "SwapXAndYAxis" property at all coordinate systems found in the given diagram. @@ -102,18 +96,16 @@ public: bool& rbFound, bool& rbAmbiguous ); - /** @param bOnlyAtFirstChartType - If </sal_True>, the stacking mode is only set at the series found inside - the first chart type. This is the standard for all current - templates (the only template that has more than one chart-type and - allows stacking is bar/line combi, and for this the stacking only - applies to the first chart type/the bars) + /** The stacking mode is only set at the series found inside + the first chart type. This is the standard for all current + templates (the only template that has more than one chart-type and + allows stacking is bar/line combi, and for this the stacking only + applies to the first chart type/the bars) */ static void setStackMode( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram > & xDiagram, - StackMode eStackMode, - bool bOnlyAtFirstChartType = true + StackMode eStackMode ); /** Retrieves the stackmode of the first DataSeries or none. If the series have differing stack diff --git a/chart2/source/inc/RelativePositionHelper.hxx b/chart2/source/inc/RelativePositionHelper.hxx index 7f9b175864a0..4416abc2c114 100644 --- a/chart2/source/inc/RelativePositionHelper.hxx +++ b/chart2/source/inc/RelativePositionHelper.hxx @@ -73,8 +73,8 @@ public: position such that the resize is relative to the former rectangle's center. - @param bCheck If </sal_True>, the resize is only done, if after - transformation, the position and size are within the bounds [0,1]. + The resize is only done, if after + transformation, the position and size are within the bounds [0,1]. @return </sal_True>, if changes were applied. @@ -84,23 +84,21 @@ public: static bool centerGrow( ::com::sun::star::chart2::RelativePosition & rInOutPosition, ::com::sun::star::chart2::RelativeSize & rInOutSize, - double fAmountX, double fAmountY, - bool bCheck = true ); + double fAmountX, double fAmountY ); /** shifts a relative position about the given amount - @param bCheck If </sal_True>, the shift is only done, if after - transformation, the object represented by the position - rInOutPosition and its size rObjectSize the position and size are - within the bounds [0,1]. + The shift is only done, if after + transformation, the object represented by the position + rInOutPosition and its size rObjectSize the position and size are + within the bounds [0,1]. @return </sal_True>, if changes were applied. */ static bool moveObject( ::com::sun::star::chart2::RelativePosition & rInOutPosition, const ::com::sun::star::chart2::RelativeSize & rObjectSize, - double fAmountX, double fAmountY, - bool bCheck = true ); + double fAmountX, double fAmountY ); }; } //namespace chart diff --git a/chart2/source/inc/StatisticsHelper.hxx b/chart2/source/inc/StatisticsHelper.hxx index 334bbea19095..7d9aeaf7f1f9 100644 --- a/chart2/source/inc/StatisticsHelper.hxx +++ b/chart2/source/inc/StatisticsHelper.hxx @@ -34,12 +34,8 @@ namespace StatisticsHelper /** Calculates 1/n * sum (x_i - x_mean)^2. @see http://mathworld.wolfram.com/Variance.html - - @param bUnbiasedEstimator - If true, 1/(n-1) * sum (x_i - x_mean)^2 is returned. */ - OOO_DLLPUBLIC_CHARTTOOLS double getVariance( const ::com::sun::star::uno::Sequence< double > & rData, - bool bUnbiasedEstimator = false ); + OOO_DLLPUBLIC_CHARTTOOLS double getVariance( const ::com::sun::star::uno::Sequence< double > & rData ); // square root of the variance OOO_DLLPUBLIC_CHARTTOOLS double getStandardDeviation( const ::com::sun::star::uno::Sequence< double > & rData ); diff --git a/chart2/source/inc/ThreeDHelper.hxx b/chart2/source/inc/ThreeDHelper.hxx index 41427ab0435d..024466cc2083 100644 --- a/chart2/source/inc/ThreeDHelper.hxx +++ b/chart2/source/inc/ThreeDHelper.hxx @@ -80,7 +80,7 @@ public: static void switchRightAngledAxes( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xSceneProperties - , bool bRightAngledAxes, bool bRotateLights=true ); + , bool bRightAngledAxes ); static void adaptRadAnglesForRightAngledAxes( double& rfXAngleRad, double& rfYAngleRad ); static double getXDegreeAngleLimitForRightAngledAxes() { return 90.0; } |