From 226fcd045455d49fa88f19117b83a9953274ff04 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 17 Jul 2014 13:30:05 -0400 Subject: No need to check for NULL value before deleting. Change-Id: Ic1e6ecea3ba3ba4ed07760557b04bc07bd963532 --- sc/source/filter/xcl97/XclExpChangeTrack.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx index a307382cc87b..8cc504fd97bd 100644 --- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx +++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx @@ -593,8 +593,7 @@ XclExpChTrAction::XclExpChTrAction( XclExpChTrAction::~XclExpChTrAction() { - if( pAddAction ) - delete pAddAction; + delete pAddAction; } void XclExpChTrAction::SetAddAction( XclExpChTrAction* pAction ) @@ -749,10 +748,8 @@ XclExpChTrCellContent::XclExpChTrCellContent( XclExpChTrCellContent::~XclExpChTrCellContent() { - if( pOldData ) - delete pOldData; - if( pNewData ) - delete pNewData; + delete pOldData; + delete pNewData; } void XclExpChTrCellContent::MakeEmptyChTrData( XclExpChTrData*& rpData ) @@ -1476,8 +1473,7 @@ XclExpChangeTrack::~XclExpChangeTrack() aActionStack.pop(); } - if( pTempDoc ) - delete pTempDoc; + delete pTempDoc; } ScChangeTrack* XclExpChangeTrack::CreateTempChangeTrack() -- cgit