summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-20 21:08:43 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-22 00:24:27 +0100
commitec64924ea82df15ce2d340b7dca0f2301efbf77c (patch)
tree45a94f838f3c81cda3e14118ce5825a1e0d03b3b /sfx2
parentf729d2d83034167db9727c2de2f4e5a32a7374d8 (diff)
don't need to check for null before delete
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/childwin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index ab61c0f88872..a69800230211 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -197,10 +197,8 @@ void SfxChildWindow::Destroy()
SfxChildWindow::~SfxChildWindow()
{
DBG_DTOR(SfxChildWindow,0);
- if ( pContext )
- delete pContext;
- if ( pWindow )
- delete pWindow;
+ delete pContext;
+ delete pWindow;
delete pImp;
}