diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-23 12:57:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-23 13:09:36 +0000 |
commit | df9dbfc1b187c6acdf864f8a169e5782aac61285 (patch) | |
tree | b6af12127cd1c0fed641737aeedf2738e407123d /sc/source/ui/miscdlgs/simpref.cxx | |
parent | 9d55221ffeb4ca408e34a7cc129fa2dfa0b9149a (diff) |
convert Link<> to typed
Change-Id: Ia647a53efa7bd8d0e0fe6937709b92c85a2e67a6
Reviewed-on: https://gerrit.libreoffice.org/18808
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/miscdlgs/simpref.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/simpref.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sc/source/ui/miscdlgs/simpref.cxx b/sc/source/ui/miscdlgs/simpref.cxx index 9fe9592da97d..50309ea5e219 100644 --- a/sc/source/ui/miscdlgs/simpref.cxx +++ b/sc/source/ui/miscdlgs/simpref.cxx @@ -123,7 +123,7 @@ void ScSimpleRefDlg::SetReference( const ScRange& rRef, ScDocument* pDocP ) else m_pEdAssign->SetRefString( aRefStr ); - aChangeHdl.Call( &aRefStr ); + aChangeHdl.Call( aRefStr ); } } @@ -154,8 +154,9 @@ void ScSimpleRefDlg::SetCloseHdl( const Link<const OUString*,void>& rLink ) aCloseHdl=rLink; } -void ScSimpleRefDlg::SetUnoLinks( const Link<>& rDone, const Link<>& rAbort, - const Link<>& rChange ) +void ScSimpleRefDlg::SetUnoLinks( const Link<const OUString&,void>& rDone, + const Link<const OUString&,void>& rAbort, + const Link<const OUString&,void>& rChange ) { aDoneHdl = rDone; aAbortedHdl = rAbort; @@ -195,9 +196,9 @@ IMPL_LINK_NOARG_TYPED(ScSimpleRefDlg, OkBtnHdl, Button*, void) bAutoReOpen=false; OUString aResult=m_pEdAssign->GetText(); aCloseHdl.Call(&aResult); - Link<> aUnoLink = aDoneHdl; // stack var because this is deleted in DoClose + Link<const OUString&,void> aUnoLink = aDoneHdl; // stack var because this is deleted in DoClose DoClose( ScSimpleRefDlgWrapper::GetChildWindowId() ); - aUnoLink.Call( &aResult ); + aUnoLink.Call( aResult ); } IMPL_LINK_NOARG_TYPED(ScSimpleRefDlg, CancelBtnHdl, Button*, void) @@ -205,9 +206,9 @@ IMPL_LINK_NOARG_TYPED(ScSimpleRefDlg, CancelBtnHdl, Button*, void) bAutoReOpen=false; OUString aResult=m_pEdAssign->GetText(); aCloseHdl.Call(NULL); - Link<> aUnoLink = aAbortedHdl; // stack var because this is deleted in DoClose + Link<const OUString&,void> aUnoLink = aAbortedHdl; // stack var because this is deleted in DoClose DoClose( ScSimpleRefDlgWrapper::GetChildWindowId() ); - aUnoLink.Call( &aResult ); + aUnoLink.Call( aResult ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |