summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-03 21:36:58 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-03 21:36:58 +0200
commitdb145e5073e42ae71a77c5987ae673cfe97426d1 (patch)
tree66b6cda54630b1a3984ff78743bfc4e5d3a99e5c /sc
parent0f2075338c7c6dfc2a7116eb2f6103060fe73104 (diff)
delete works fine on nullptr
Change-Id: I373df68f8ce59d34d98a8c5608a16deb278ecec3
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr8.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx
index d2e160e8f759..765129176dbc 100644
--- a/sc/source/core/tool/interpr8.cxx
+++ b/sc/source/core/tool/interpr8.cxx
@@ -142,14 +142,10 @@ ScETSForecastCalculation::ScETSForecastCalculation( SCSIZE nSize, SvNumberFormat
ScETSForecastCalculation::~ScETSForecastCalculation()
{
- if ( mpBase )
- delete mpBase;
- if ( mpTrend )
- delete mpTrend;
- if ( mpPerIdx )
- delete mpPerIdx;
- if ( mpForecast )
- delete mpForecast;
+ delete mpBase;
+ delete mpTrend;
+ delete mpPerIdx;
+ delete mpForecast;
}
bool ScETSForecastCalculation::PreprocessDataRange( ScMatrixRef rMatX, ScMatrixRef rMatY, int& rSmplInPrd,