From 3c99f8500f657ed84b316390d5175a6f5e56bc69 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 4 Oct 2015 15:05:38 +0200 Subject: convert Link<> to typed Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb Reviewed-on: https://gerrit.libreoffice.org/19305 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sw/source/uibase/uiview/viewling.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sw/source/uibase/uiview') diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index 51bb694445a2..29ad1bcf791e 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -823,7 +823,7 @@ private: VclPtr aListBox; IFieldmark *pFieldmark; - DECL_LINK( MyListBoxHandler, ListBox * ); + DECL_LINK_TYPED( MyListBoxHandler, ListBox&, void ); public: SwFieldDialog( SwEditWin* parent, IFieldmark *fieldBM ); @@ -886,12 +886,11 @@ void SwFieldDialog::dispose() FloatingWindow::dispose(); } -IMPL_LINK( SwFieldDialog, MyListBoxHandler, ListBox *, pBox ) +IMPL_LINK_TYPED( SwFieldDialog, MyListBoxHandler, ListBox&, rBox, void ) { - short res = 0; - if ( !pBox->IsTravelSelect() ) + if ( !rBox.IsTravelSelect() ) { - sal_Int32 selection = pBox->GetSelectEntryPos(); + sal_Int32 selection = rBox.GetSelectEntryPos(); if ( selection >= 0 ) { OUString sKey = OUString( ODF_FORMDROPDOWN_RESULT ); @@ -902,9 +901,7 @@ IMPL_LINK( SwFieldDialog, MyListBoxHandler, ListBox *, pBox ) } EndPopupMode(); - res = 1; } - return res; } IMPL_LINK_NOARG_TYPED(SwView, FieldPopupModeEndHdl, FloatingWindow*, void) -- cgit