summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-10 10:51:44 +0200
committerNoel Grandin <noel@peralex.com>2015-09-11 08:48:54 +0200
commite8ee8473361f09034fdcd4f30a2325a53a512a7a (patch)
tree38b7f6a9c2b8f6ad54b2698fc7bf92a7f9b8b0b9 /svtools
parent23175c02b0f16b213736f87697b600dbbd72ff60 (diff)
convert Link<> to typed
Change-Id: I3defac5fff9708228d9bf3200e51853a127bfdc5
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelistbox.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index d5bce70a2a34..f86ff4a8ea9b 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -124,12 +124,12 @@ SvInplaceEdit2::SvInplaceEdit2
vcl::Window* pParent, const Point& rPos,
const Size& rSize,
const OUString& rData,
- const Link<>& rNotifyEditEnd,
+ const Link<SvInplaceEdit2&,void>& rNotifyEditEnd,
const Selection& rSelection,
bool bMulti
) :
- aCallBackHdl ( rNotifyEditEnd ),
+ aCallBackHdl ( rNotifyEditEnd ),
bCanceled ( false ),
bAlreadyInCallBack ( false )
@@ -253,7 +253,7 @@ void SvInplaceEdit2::CallCallBackHdl_Impl()
Application::RemoveAccel( &aAccReturn );
Application::RemoveAccel( &aAccEscape );
pEdit->Hide();
- aCallBackHdl.Call( this );
+ aCallBackHdl.Call( *this );
}
}
@@ -993,10 +993,10 @@ void SvTreeListBox::EditText( const OUString& rStr, const Rectangle& rRect,
rSel, bMulti );
}
-IMPL_LINK_NOARG(SvTreeListBox, TextEditEndedHdl_Impl)
+IMPL_LINK_NOARG_TYPED(SvTreeListBox, TextEditEndedHdl_Impl, SvInplaceEdit2&, void)
{
if ( nImpFlags & SvTreeListBoxFlags::EDTEND_CALLED ) // avoid nesting
- return 0;
+ return;
nImpFlags |= SvTreeListBoxFlags::EDTEND_CALLED;
OUString aStr;
if ( !pEdCtrl->EditingCanceled() )
@@ -1011,7 +1011,6 @@ IMPL_LINK_NOARG(SvTreeListBox, TextEditEndedHdl_Impl)
pEdCtrl->Hide();
nImpFlags &= (~SvTreeListBoxFlags::IN_EDT);
GrabFocus();
- return 0;
}
void SvTreeListBox::CancelTextEditing()