diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-25 10:27:15 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-25 18:21:31 +0000 |
commit | f8a7c031f1ff872f9566b7bfce0321c0b89d45f9 (patch) | |
tree | 30e862f02865686fc0434efc82330c8dd968d860 /sc/source/ui/drawfunc | |
parent | 1296732028df43160d070d27be6fd961e284fdd6 (diff) |
convert Link<> to typed
Change-Id: Ic39135b39f1389fdf94fb16746100209ee63f492
Reviewed-on: https://gerrit.libreoffice.org/18856
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/drawfunc')
-rw-r--r-- | sc/source/ui/drawfunc/drawsh5.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx index d3f2dad76446..cdb6999bbad4 100644 --- a/sc/source/ui/drawfunc/drawsh5.cxx +++ b/sc/source/ui/drawfunc/drawsh5.cxx @@ -617,12 +617,10 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq ) } } -IMPL_LINK( ScDrawShell, NameObjectHdl, AbstractSvxNameDialog*, pDialog ) +IMPL_LINK_TYPED( ScDrawShell, NameObjectHdl, AbstractSvxObjectNameDialog&, rDialog, bool ) { OUString aName; - - if( pDialog ) - pDialog->GetName( aName ); + rDialog.GetName( aName ); ScDrawLayer* pModel = pViewData->GetDocument()->GetDrawLayer(); if ( !aName.isEmpty() && pModel ) @@ -631,11 +629,11 @@ IMPL_LINK( ScDrawShell, NameObjectHdl, AbstractSvxNameDialog*, pDialog ) if ( pModel->GetNamedObject( aName, 0, nDummyTab ) ) { // existing object found -> name invalid - return 0; + return false; } } - return 1; // name is valid + return true; // name is valid } void ScDrawShell::ExecFormText(SfxRequest& rReq) |