summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-10-04 15:05:38 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-12 10:48:13 +0000
commit3c99f8500f657ed84b316390d5175a6f5e56bc69 (patch)
tree749f16652560a50d409b12a23bf1a5d93b3cd2d5 /sw/source/uibase/uiview
parentbbadb38539eb233ac45b267034066a7274181c65 (diff)
convert Link<> to typed
Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb Reviewed-on: https://gerrit.libreoffice.org/19305 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r--sw/source/uibase/uiview/viewling.cxx11
1 files changed, 4 insertions, 7 deletions
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<ListBox> 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)