diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-10 09:47:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-10 10:48:04 +0000 |
commit | 95af5f51fa6c7a0129360bb9df687fb8660fd3c9 (patch) | |
tree | 4ba9e086012cf97113250f74429c407cb36725db /sw/source/ui | |
parent | 1bb614066738f2672da8923c40b5694eed383e86 (diff) |
V668 no sense in testing the result of new against null
Change-Id: I85993df91bd14966f9175c356966fbd8eb1a927d
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx index 8bc1190a50a6..a64cb0820089 100644 --- a/sw/source/ui/dialog/swdlgfact.cxx +++ b/sw/source/ui/dialog/swdlgfact.cxx @@ -987,9 +987,7 @@ AbstractInsFootNoteDlg* SwAbstractDialogFactory_Impl::CreateInsFootNoteDlg( VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateTitlePageDlg ( vcl::Window *pParent ) { Dialog* pDlg = new SwTitlePageDlg( pParent ); - if ( pDlg ) - return new VclAbstractDialog_Impl( pDlg ); - return 0; + return new VclAbstractDialog_Impl( pDlg ); } VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclSwViewDialog(SwView& rView) |