summaryrefslogtreecommitdiff
path: root/sw/source/ui/app/applab.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/app/applab.cxx
parent538c8cfc3f1df95cde6789f52a120c8de0a75511 (diff)
redundant if not-null checks on delete
Diffstat (limited to 'sw/source/ui/app/applab.cxx')
-rw-r--r--sw/source/ui/app/applab.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/ui/app/applab.cxx b/sw/source/ui/app/applab.cxx
index 69623ddf05d2..3bf837f71ea5 100644
--- a/sw/source/ui/app/applab.cxx
+++ b/sw/source/ui/app/applab.cxx
@@ -436,9 +436,7 @@ void SwModule::InsertLab(SfxRequest& rReq, sal_Bool bLabel)
rReq.SetReturnValue(SfxVoidItem(bLabel ? FN_LABEL : FN_BUSINESS_CARD));
}
delete pDlg;
-
- if( pNewDBMgr )
- delete pNewDBMgr;
+ delete pNewDBMgr;
}