[Libreoffice-commits] core.git: 2 commits - sc/source
Tor Lillqvist
tml at collabora.com
Thu Mar 3 19:36:25 UTC 2016
sc/source/core/tool/interpr8.cxx | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
New commits:
commit 0f2075338c7c6dfc2a7116eb2f6103060fe73104
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Mar 3 21:34:36 2016 +0200
loplugin:nullptr
Change-Id: I139b93f3285c61e2a4ba2d7959273dbcd1f95694
diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx
index 762ae93..d2e160e 100644
--- a/sc/source/core/tool/interpr8.cxx
+++ b/sc/source/core/tool/interpr8.cxx
@@ -134,10 +134,10 @@ ScETSForecastCalculation::ScETSForecastCalculation( SCSIZE nSize, SvNumberFormat
maRange.reserve( mnCount );
mbInitialised = false;
mnMonthDay = 0;
- mpBase = 0;
- mpTrend = 0;
- mpPerIdx = 0;
- mpForecast = 0;
+ mpBase = nullptr;
+ mpTrend = nullptr;
+ mpPerIdx = nullptr;
+ mpForecast = nullptr;
}
ScETSForecastCalculation::~ScETSForecastCalculation()
@@ -1312,7 +1312,7 @@ void ScInterpreter::ScForecast_Ets( ScETSType eETSType )
ScETSForecastCalculation aETSCalc( pMatX->GetElementCount(), pFormatter );
if ( !aETSCalc.PreprocessDataRange( pMatX, pMatY, nSmplInPrd, bDataCompletion,
nAggregation,
- ( eETSType != etsStatAdd && eETSType != etsStatMult ? pTMat : 0 ),
+ ( eETSType != etsStatAdd && eETSType != etsStatMult ? pTMat : nullptr ),
eETSType ) )
{
PushError( aETSCalc.GetError() );
commit 599dff308a5cb0e9ca4337839493742839abded2
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Mar 3 21:33:27 2016 +0200
loplugin:unreffun
Change-Id: I13b718ae04c30d02003fa31322de655f9386b815
diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx
index f88d3c2..762ae93 100644
--- a/sc/source/core/tool/interpr8.cxx
+++ b/sc/source/core/tool/interpr8.cxx
@@ -25,7 +25,6 @@ struct DataPoint
{
double X, Y;
- DataPoint() : X( 0.0 ), Y( 0.0 ) {};
DataPoint( double rX, double rY ) : X( rX ), Y( rY ) {};
};
More information about the Libreoffice-commits
mailing list