diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-28 16:20:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-31 09:50:10 +0200 |
commit | 410c06bec452b09cd15ddfcb82b8b2b0508f3c55 (patch) | |
tree | a7841b14e58bf02a3f45d5a0547dc711b3dc7cba /dbaccess/source/ui/app | |
parent | 32673845809df70efe2651c3ca82f574245279c2 (diff) |
convert Link<> to typed
and remove some dead code
Change-Id: I608ed684fafb33390d869f7ebd4000c53d7fb28d
Diffstat (limited to 'dbaccess/source/ui/app')
-rw-r--r-- | dbaccess/source/ui/app/AppSwapWindow.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/app/AppSwapWindow.hxx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/dbaccess/source/ui/app/AppSwapWindow.cxx b/dbaccess/source/ui/app/AppSwapWindow.cxx index f8c57cef4695..6544c40c869f 100644 --- a/dbaccess/source/ui/app/AppSwapWindow.cxx +++ b/dbaccess/source/ui/app/AppSwapWindow.cxx @@ -157,7 +157,7 @@ bool OApplicationSwapWindow::onContainerSelected( ElementType _eType ) return false; } -IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pControl) +IMPL_LINK_TYPED(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pControl, void) { SvxIconChoiceCtrlEntry* pEntry = _pControl->GetSelectedEntry(); ElementType eType = E_NONE; @@ -166,8 +166,6 @@ IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pCo eType = *static_cast<ElementType*>(pEntry->GetUserData()); onContainerSelected( eType ); // i87582 } - - return 1L; } IMPL_LINK_NOARG_TYPED(OApplicationSwapWindow, ChangeToLastSelected, void*, void) diff --git a/dbaccess/source/ui/app/AppSwapWindow.hxx b/dbaccess/source/ui/app/AppSwapWindow.hxx index dba8d5f9db5b..479271214365 100644 --- a/dbaccess/source/ui/app/AppSwapWindow.hxx +++ b/dbaccess/source/ui/app/AppSwapWindow.hxx @@ -37,7 +37,7 @@ namespace dbaui void ImplInitSettings( bool bFont, bool bForeground, bool bBackground ); - DECL_LINK( OnContainerSelectHdl, SvtIconChoiceCtrl* ); + DECL_LINK_TYPED( OnContainerSelectHdl, SvtIconChoiceCtrl*, void ); DECL_LINK_TYPED( ChangeToLastSelected, void*, void ); protected: virtual void DataChanged(const DataChangedEvent& rDCEvt) SAL_OVERRIDE; |