From ec64924ea82df15ce2d340b7dca0f2301efbf77c Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 20 Mar 2012 21:08:43 +0100 Subject: don't need to check for null before delete --- sfx2/source/appl/childwin.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sfx2') 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; } -- cgit