diff options
Diffstat (limited to 'sw/source/ui/dialog/swdlgfact.cxx')
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.cxx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx index da55531de7c6..62e75620bbd9 100644 --- a/sw/source/ui/dialog/swdlgfact.cxx +++ b/sw/source/ui/dialog/swdlgfact.cxx @@ -1035,21 +1035,10 @@ AbstractSwRenameXNamedDlg * SwAbstractDialogFactory_Impl::CreateSwRenameXNamedDl return 0; } -AbstractSwModalRedlineAcceptDlg * SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg ( Window *pParent, int nResId ) +AbstractSwModalRedlineAcceptDlg * SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg(Window *pParent) { - SwModalRedlineAcceptDlg* pDlg=NULL; - switch ( nResId ) - { - case DLG_MOD_REDLINE_ACCEPT : - pDlg = new SwModalRedlineAcceptDlg( pParent ); - break; - default: - break; - } - - if ( pDlg ) - return new AbstractSwModalRedlineAcceptDlg_Impl( pDlg ); - return 0; + SwModalRedlineAcceptDlg* pDlg = new SwModalRedlineAcceptDlg( pParent ); + return new AbstractSwModalRedlineAcceptDlg_Impl( pDlg ); } VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwVclDialog( int nResId, |