summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 10:48:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-09 11:35:44 +0000
commitff39b78d74cfb30e2b485818b217915fd9a31b92 (patch)
tree65a3ef5121fbb9cbdfb5f3b7076f80b704971913 /cui
parente21a2e7a01b7d6d63038a06b6e55d8bc5ec95aa8 (diff)
unnecessary nResId argument
Change-Id: Id7d3df1af42cbe7b4f951c335063d26b59e7bc10
Diffstat (limited to 'cui')
-rw-r--r--cui/source/factory/dlgfact.cxx19
-rw-r--r--cui/source/factory/dlgfact.hxx4
2 files changed, 5 insertions, 18 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index a27a8f189047..3722d35a674f 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -1231,22 +1231,11 @@ AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxPathSelectDial
}
AbstractSvxHpLinkDlg * AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (vcl::Window* pParent,
- SfxBindings* pBindings,
- sal_uInt32 nResId)
+ SfxBindings* pBindings)
{
- SvxHpLinkDlg* pDlg=nullptr;
- switch ( nResId )
- {
- case SID_HYPERLINK_DIALOG :
- pDlg = VclPtr<SvxHpLinkDlg>::Create( pParent, pBindings );
- break;
- default:
- break;
- }
-
- if ( pDlg )
- return new AbstractSvxHpLinkDlg_Impl( pDlg );
- return nullptr;
+ SvxHpLinkDlg* pDlg = VclPtr<SvxHpLinkDlg>::Create( pParent, pBindings );
+ fprintf(stderr, "CreateSvxHpLinkDlg\n");
+ return new AbstractSvxHpLinkDlg_Impl(pDlg);
}
AbstractFmSearchDialog* AbstractDialogFactory_Impl::CreateFmSearchDialog(vcl::Window* pParent,
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx
index 21d8e29f1d5d..482dfc82c17c 100644
--- a/cui/source/factory/dlgfact.hxx
+++ b/cui/source/factory/dlgfact.hxx
@@ -600,9 +600,7 @@ public:
virtual AbstractSvxMultiPathDialog * CreateSvxMultiPathDialog(vcl::Window* pParent) override;
virtual AbstractSvxMultiPathDialog * CreateSvxPathSelectDialog(vcl::Window* pParent) override;
- virtual AbstractSvxHpLinkDlg * CreateSvxHpLinkDlg (vcl::Window* pParent,
- SfxBindings* pBindings,
- sal_uInt32 nResId) override;
+ virtual AbstractSvxHpLinkDlg * CreateSvxHpLinkDlg(vcl::Window* pParent, SfxBindings* pBindings) override;
virtual AbstractFmSearchDialog* CreateFmSearchDialog(vcl::Window* pParent,
const OUString& strInitialText,
const ::std::vector< OUString >& _rContexts,