diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-16 09:51:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-17 08:19:32 +0200 |
commit | b98fb89598a400b33a47ceebafe1604c03c829dc (patch) | |
tree | dd465013d9f77ea14b6e77a81b7cf88dd2f4a88e /sc/source/ui/app | |
parent | 23b9febbd883f9db77ffb0216b050aaabc4c6510 (diff) |
convert Link<> to typed
Change-Id: Ied8e0b35f193770a6651f1c57dfb8eedd22d837c
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 4ca59a7cd746..6293db35be83 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1244,17 +1244,16 @@ IMPL_LINK(ScMultiTextWnd, ModifyHdl, EENotify*, pNotify) return 0; } -IMPL_LINK(ScMultiTextWnd, NotifyHdl, EENotify*, pNotify) +IMPL_LINK_TYPED(ScMultiTextWnd, NotifyHdl, EENotify&, rNotify, void) { // need to process EE_NOTIFY_TEXTVIEWSCROLLED here // sometimes we don't seem to get EE_NOTIFY_TEXTVIEWSCROLLED e.g. when // we insert text at the beginning of the text so the cursor never moves // down to generate a scroll event - if ( pNotify && ( pNotify->eNotificationType == EE_NOTIFY_TEXTVIEWSCROLLED - || pNotify->eNotificationType == EE_NOTIFY_TEXTHEIGHTCHANGED ) ) + if ( rNotify.eNotificationType == EE_NOTIFY_TEXTVIEWSCROLLED + || rNotify.eNotificationType == EE_NOTIFY_TEXTHEIGHTCHANGED ) SetScrollBarRange(); - return 0; } long ScMultiTextWnd::GetEditEngTxtHeight() @@ -1434,7 +1433,7 @@ void ScMultiTextWnd::InitEditEngine() void ScMultiTextWnd::StopEditEngine( bool bAll ) { if ( pEditEngine ) - pEditEngine->SetNotifyHdl(Link<>()); + pEditEngine->SetNotifyHdl(Link<EENotify&,void>()); ScTextWnd::StopEditEngine( bAll ); } |