summaryrefslogtreecommitdiff
path: root/cui/source/factory
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-10 13:07:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-10 15:44:58 +0000
commitb6d6dab920a9e14a6fe9c61446da64ab62dcbfdf (patch)
tree0b80eb631d6869ad1c3c06857909c08c9f5d3480 /cui/source/factory
parent441523b0df8983fb34409a5f4e25dde571be1af7 (diff)
V668 no sense in testing the result of new against null
Change-Id: I1cff71d15f4d1b5ee47cc734b3fc2168d7f99201
Diffstat (limited to 'cui/source/factory')
-rw-r--r--cui/source/factory/dlgfact.cxx17
1 files changed, 4 insertions, 13 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 1421e83a7295..062d67e9c2bf 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -1216,13 +1216,8 @@ void AbstractScriptSelectorDialog_Impl::SetRunLabel()
VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( vcl::Window* pParent,
const OUString& rLanguage)
{
- Dialog* pDlg=NULL;
-
- pDlg = new SvxScriptOrgDialog( pParent, rLanguage);
-
- if ( pDlg )
- return new CuiVclAbstractDialog_Impl( pDlg );
- return 0;
+ Dialog* pDlg = new SvxScriptOrgDialog( pParent, rLanguage);
+ return new CuiVclAbstractDialog_Impl( pDlg );
}
AbstractTitleDialog * AbstractDialogFactory_Impl::CreateTitleDialog( vcl::Window* pParent,
@@ -1295,9 +1290,7 @@ AbstractSvxSearchSimilarityDialog * AbstractDialogFactory_Impl::CreateSvxSearchS
sal_uInt16 nLonger)
{
SvxSearchSimilarityDialog* pDlg = new SvxSearchSimilarityDialog( pParent, bRelax, nOther, nShorter, nLonger );
- if ( pDlg )
- return new AbstractSvxSearchSimilarityDialog_Impl( pDlg );
- return NULL;
+ return new AbstractSvxSearchSimilarityDialog_Impl( pDlg );
}
//UUUU
@@ -1460,9 +1453,7 @@ AbstractFmSearchDialog* AbstractDialogFactory_Impl::CreateFmSearchDialog(vcl::W
const Link& lnkContextSupplier)
{
FmSearchDialog* pDlg = new FmSearchDialog( pParent, strInitialText, _rContexts, nInitialContext, lnkContextSupplier );
- if ( pDlg )
- return new AbstractFmSearchDialog_Impl( pDlg );
- return 0;
+ return new AbstractFmSearchDialog_Impl( pDlg );
}
AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (vcl::Window* pParent,