diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-30 22:35:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-04 17:54:50 +0200 |
commit | 87fabc0f83f0e67a2f5ba9b0588f1d4523e0a9ed (patch) | |
tree | 92274c9a72ff0ff614c4c325e6ad36c77ee71bbe /dbaccess | |
parent | ed85e11a1bb2e8913e5efc9257ff74bf7543a1df (diff) |
Use typed OTextConnectionHelper::SetClickHandler Link
Change-Id: I4d60400f4cc3f34529d632e52b676007f87ff646
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/TextConnectionHelper.hxx | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx index b01a1bb6a95a..405963e1e35c 100644 --- a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx +++ b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx @@ -85,11 +85,10 @@ using namespace ::com::sun::star; OConnectionTabPageSetup::dispose(); } - IMPL_LINK(OTextConnectionPageSetup, ImplGetExtensionHdl, OTextConnectionHelper*, /*_pTextConnectionHelper*/) + IMPL_LINK_NOARG_TYPED(OTextConnectionPageSetup, ImplGetExtensionHdl, OTextConnectionHelper*, void) { SetRoadmapStateValue(!m_pTextConnectionHelper->GetExtension().isEmpty() && OConnectionTabPageSetup::checkTestConnection()); callModifiedHdl(); - return sal_True; } bool OTextConnectionPageSetup::checkTestConnection() diff --git a/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx b/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx index 0f2c026a12ea..58395ff49f63 100644 --- a/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx +++ b/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx @@ -74,7 +74,7 @@ namespace dbaui bool checkTestConnection() SAL_OVERRIDE; private: - DECL_LINK(ImplGetExtensionHdl, OTextConnectionHelper*); + DECL_LINK_TYPED(ImplGetExtensionHdl, OTextConnectionHelper*, void); }; // OLDAPConnectionPageSetup diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx index c847fe4aee83..2d78a732232c 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx @@ -75,7 +75,7 @@ namespace dbaui OUString m_aTextSeparatorList; OUString m_aTextNone; OUString m_aOldExtension; - Link<> m_aGetExtensionHandler; /// to be called if a new type is selected + Link<OTextConnectionHelper*, void> m_aGetExtensionHandler; /// to be called if a new type is selected short m_nAvailableSections; @@ -95,7 +95,7 @@ namespace dbaui void implInitControls(const SfxItemSet& _rSet, bool _bValid); void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList); void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList); - void SetClickHandler(const Link<>& _rHandler) { m_aGetExtensionHandler = _rHandler; } + void SetClickHandler(const Link<OTextConnectionHelper*, void>& _rHandler) { m_aGetExtensionHandler = _rHandler; } OUString GetExtension(); bool FillItemSet( SfxItemSet& rSet, const bool bChangedSomething ); bool prepareLeave(); |