diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-15 08:13:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-16 09:11:29 +0000 |
commit | 6f1313b3d44ea54e9a331e0fc00871081fa662fe (patch) | |
tree | fa6d9b6da04daedcb63ea2a0bc8c414288ed8bc6 /sc/source/ui/dbgui/consdlg.cxx | |
parent | 14bf708ef586b15dffed66ffaf524baf4d8fcbfa (diff) |
convert Link<> to typed
Change-Id: Icbba339dac0be31e30dff021bba06a219f8aecd6
Reviewed-on: https://gerrit.libreoffice.org/19405
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/dbgui/consdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/consdlg.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sc/source/ui/dbgui/consdlg.cxx b/sc/source/ui/dbgui/consdlg.cxx index 16b2f0c52b06..0d8f58910ae3 100644 --- a/sc/source/ui/dbgui/consdlg.cxx +++ b/sc/source/ui/dbgui/consdlg.cxx @@ -225,7 +225,7 @@ void ScConsolidateDlg::Init() } FillAreaLists(); - ModifyHdl( pEdDestArea ); + ModifyHdl( *pEdDestArea ); pLbDataArea->SelectEntryPos( 0 ); pEdDataArea->SetText(OUString()); pEdDataArea->GrabFocus(); @@ -280,7 +280,7 @@ void ScConsolidateDlg::SetReference( const ScRange& rRef, ScDocument* pDocP ) aStr = rRef.aStart.Format(nFmt, pDocP, eConv); pRefInputEdit->SetRefString( aStr ); - ModifyHdl( pRefInputEdit ); + ModifyHdl( *pRefInputEdit ); } } @@ -298,7 +298,7 @@ void ScConsolidateDlg::SetActive() if ( pRefInputEdit ) { pRefInputEdit->GrabFocus(); - ModifyHdl( pRefInputEdit ); + ModifyHdl( *pRefInputEdit ); } } else @@ -524,11 +524,11 @@ IMPL_LINK_TYPED( ScConsolidateDlg, SelectHdl, ListBox&, rLb, void ) } } -IMPL_LINK( ScConsolidateDlg, ModifyHdl, formula::RefEdit*, pEd ) +IMPL_LINK_TYPED( ScConsolidateDlg, ModifyHdl, Edit&, rEd, void ) { - if ( pEd == pEdDataArea ) + if ( &rEd == pEdDataArea ) { - OUString aAreaStr( pEd->GetText() ); + OUString aAreaStr( rEd.GetText() ); if ( !aAreaStr.isEmpty() ) { pBtnAdd->Enable(); @@ -536,11 +536,10 @@ IMPL_LINK( ScConsolidateDlg, ModifyHdl, formula::RefEdit*, pEd ) else pBtnAdd->Disable(); } - else if ( pEd == pEdDestArea ) + else if ( &rEd == pEdDestArea ) { pLbDestArea->SelectEntryPos(0); } - return 0; } // TODO: generalize! |