summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui/glbltree.cxx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-11-17 22:13:42 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-11-17 22:45:10 +0400
commit3616dfb094089589b5c9082fc96702ad1155045f (patch)
tree60f96e277c910ccc0eb76e22f76d6a51c7a82cdc /sw/source/ui/utlui/glbltree.cxx
parent538c8cfc3f1df95cde6789f52a120c8de0a75511 (diff)
redundant if not-null checks on delete
Diffstat (limited to 'sw/source/ui/utlui/glbltree.cxx')
-rw-r--r--sw/source/ui/utlui/glbltree.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx
index 1855d9f23277..4fa15076a6ac 100644
--- a/sw/source/ui/utlui/glbltree.cxx
+++ b/sw/source/ui/utlui/glbltree.cxx
@@ -730,8 +730,7 @@ void SwGlobalTree::InsertRegion( const SwGlblDocContent* pCont, const String* pF
{
pDefParentWin = Application::GetDefDialogParent();
Application::SetDefDialogParent( this );
- if ( pDocInserter )
- delete pDocInserter;
+ delete pDocInserter;
pDocInserter = new ::sfx2::DocumentInserter( 0, String::CreateFromAscii("swriter"), true );
pDocInserter->StartExecuteModal( LINK( this, SwGlobalTree, DialogClosedHdl ) );
}