diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-08 12:03:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-09 15:05:54 +0200 |
commit | 1dd5e226bd57254024640b10cbbe639f12564655 (patch) | |
tree | 6fbbe3197fbb7f74eaa5786919ced46a06cbf39d /chart2 | |
parent | 027b25ecd54ac97ea2471ca73e3ba89ce052fe76 (diff) |
clang-tidy readability-non-const-parameter
Change-Id: I7b2680898dbfc49185fb949349d81f4ac615a470
Reviewed-on: https://gerrit.libreoffice.org/38593
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/RegressionCurveCalculator.hxx | 4 | ||||
-rw-r--r-- | chart2/source/inc/TitleHelper.hxx | 2 | ||||
-rw-r--r-- | chart2/source/tools/RegressionCurveCalculator.cxx | 4 | ||||
-rw-r--r-- | chart2/source/tools/TitleHelper.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/charttypes/Splines.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/inc/VSeriesPlotter.hxx | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/inc/RegressionCurveCalculator.hxx b/chart2/source/inc/RegressionCurveCalculator.hxx index aeab66d280fa..c5933e55aa11 100644 --- a/chart2/source/inc/RegressionCurveCalculator.hxx +++ b/chart2/source/inc/RegressionCurveCalculator.hxx @@ -50,9 +50,9 @@ protected: const css::uno::Reference< css::util::XNumberFormatter >& xNumFormatter, sal_Int32 nNumberFormatKey, double fNumber, - sal_Int32* pStringLength ); + const sal_Int32* pStringLength ); - static void addStringToEquation( OUStringBuffer& aStrEquation, sal_Int32& nLineLength, OUStringBuffer& aAddString, sal_Int32* pMaxLength ); + static void addStringToEquation( OUStringBuffer& aStrEquation, sal_Int32& nLineLength, OUStringBuffer& aAddString, const sal_Int32* pMaxLength ); double m_fCorrelationCoeffitient; diff --git a/chart2/source/inc/TitleHelper.hxx b/chart2/source/inc/TitleHelper.hxx index 3f08684550fe..4a998cb6cb99 100644 --- a/chart2/source/inc/TitleHelper.hxx +++ b/chart2/source/inc/TitleHelper.hxx @@ -85,7 +85,7 @@ public: static void setCompleteString( const OUString& rNewText , const css::uno::Reference< css::chart2::XTitle >& xTitle , const css::uno::Reference< css::uno::XComponentContext > & xContext - , float * pDefaultCharHeight = nullptr ); + , const float * pDefaultCharHeight = nullptr ); static bool getTitleType( eTitleType& rType , const css::uno::Reference< css::chart2::XTitle >& xTitle diff --git a/chart2/source/tools/RegressionCurveCalculator.cxx b/chart2/source/tools/RegressionCurveCalculator.cxx index b24df25e27e6..6f2ab6a64288 100644 --- a/chart2/source/tools/RegressionCurveCalculator.cxx +++ b/chart2/source/tools/RegressionCurveCalculator.cxx @@ -85,7 +85,7 @@ void RegressionCurveCalculator::setRegressionProperties( OUString RegressionCurveCalculator::getFormattedString( const Reference< util::XNumberFormatter >& xNumFormatter, sal_Int32 nNumberFormatKey, - double fNumber, sal_Int32* pStringLength /* = nullptr */ ) + double fNumber, const sal_Int32* pStringLength /* = nullptr */ ) { if ( pStringLength && *pStringLength <= 0 ) return OUString("###"); @@ -194,7 +194,7 @@ OUString SAL_CALL RegressionCurveCalculator::getFormattedRepresentation( } void RegressionCurveCalculator::addStringToEquation( - OUStringBuffer& aStrEquation, sal_Int32& nLineLength, OUStringBuffer& aAddString, sal_Int32* pMaxWidth) + OUStringBuffer& aStrEquation, sal_Int32& nLineLength, OUStringBuffer& aAddString, const sal_Int32* pMaxWidth) { if ( pMaxWidth && ( nLineLength + aAddString.getLength() > *pMaxWidth ) ) { // wrap line diff --git a/chart2/source/tools/TitleHelper.cxx b/chart2/source/tools/TitleHelper.cxx index 5701eb1bc510..e235c5a8e701 100644 --- a/chart2/source/tools/TitleHelper.cxx +++ b/chart2/source/tools/TitleHelper.cxx @@ -313,7 +313,7 @@ OUString TitleHelper::getCompleteString( const uno::Reference< XTitle >& xTitle void TitleHelper::setCompleteString( const OUString& rNewText , const uno::Reference< XTitle >& xTitle , const uno::Reference< uno::XComponentContext > & xContext - , float * pDefaultCharHeight /* = 0 */ ) + , const float * pDefaultCharHeight /* = 0 */ ) { //the format of the first old text portion will be maintained if there is any if(!xTitle.is()) diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx index b3cd9a77c67f..6f49d83d9d15 100644 --- a/chart2/source/view/charttypes/Splines.cxx +++ b/chart2/source/view/charttypes/Splines.cxx @@ -473,7 +473,7 @@ bool createParameterT(const tPointVecType& rUniquePoints, double* t) return bIsSuccessful; } -void createKnotVector(const lcl_tSizeType n, const sal_uInt32 p, double* t, double* u) +void createKnotVector(const lcl_tSizeType n, const sal_uInt32 p, const double* t, double* u) { // precondition: 0 = t_0 < t_1 < ... < t_n = 1 for (lcl_tSizeType j = 0; j <= p; ++j) { diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index be104a475f3b..1d9c90a7bb4b 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -863,7 +863,7 @@ void VSeriesPlotter::createErrorBar( , const VDataSeries& rVDataSeries , sal_Int32 nIndex , bool bYError /* = true */ - , double* pfScaledLogicX + , const double* pfScaledLogicX ) { if( !ChartTypeHelper::isSupportingStatisticProperties( m_xChartTypeModel, m_nDimension ) ) diff --git a/chart2/source/view/inc/VSeriesPlotter.hxx b/chart2/source/view/inc/VSeriesPlotter.hxx index 15e955a1fdca..c66f992cf12a 100644 --- a/chart2/source/view/inc/VSeriesPlotter.hxx +++ b/chart2/source/view/inc/VSeriesPlotter.hxx @@ -356,7 +356,7 @@ protected: , const VDataSeries& rVDataSeries , sal_Int32 nIndex , bool bVertical - , double* pfScaledLogicX + , const double* pfScaledLogicX ); void createErrorBar_X( const css::drawing::Position3D& rUnscaledLogicPosition |