diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-17 13:30:05 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-17 13:31:18 -0400 |
commit | 226fcd045455d49fa88f19117b83a9953274ff04 (patch) | |
tree | 8ccef45181813c147a77aa8641d1b4295885e700 | |
parent | 9da4fe80c81b3464b2f6834052a24ce57c2fd07e (diff) |
No need to check for NULL value before deleting.
Change-Id: Ic1e6ecea3ba3ba4ed07760557b04bc07bd963532
-rw-r--r-- | sc/source/filter/xcl97/XclExpChangeTrack.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
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() |