summaryrefslogtreecommitdiff
path: root/cui/source/factory
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-31 12:07:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-10-31 14:16:54 +0000
commit79b9cd76f88c2b7f808aaedffb7cbd5dd5889f65 (patch)
treec16f45080e1a5fc39f713350e518406c1b8a9f85 /cui/source/factory
parent502be5d920d4ebdec95d2c8dde5b0996b826a8e8 (diff)
convert run macro to .ui
Change-Id: I4e83afa3d164ba0ae8640f4b5f2712b88c1e305f
Diffstat (limited to 'cui/source/factory')
-rw-r--r--cui/source/factory/dlgfact.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 3c019294e1bf..ebd3d6449c42 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -1208,15 +1208,8 @@ AbstractScriptSelectorDialog*
AbstractDialogFactory_Impl::CreateScriptSelectorDialog(
Window* pParent, sal_Bool bShowSlots, const Reference< frame::XFrame >& _rxFrame )
{
- SvxScriptSelectorDialog* pDlg = NULL;
-
- pDlg = new SvxScriptSelectorDialog( pParent, bShowSlots, _rxFrame );
-
- if (pDlg)
- {
- return new AbstractScriptSelectorDialog_Impl( pDlg );
- }
- return 0;
+ SvxScriptSelectorDialog* pDlg = new SvxScriptSelectorDialog(pParent, bShowSlots, _rxFrame);
+ return new AbstractScriptSelectorDialog_Impl(pDlg);
}
String AbstractScriptSelectorDialog_Impl::GetScriptURL() const