diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-01-22 09:45:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-01-22 14:51:12 +0100 |
commit | 27f15f1d50b1b67c940bf57e1581240011806159 (patch) | |
tree | d76949df5bf5e6437910c371520227895128d87e /chart2/source | |
parent | e531242f62d27000ab5fefd6d63023d4a1060c75 (diff) |
simplify the getters in AbstractSvx*Dialog
to look like getters elsewhere, which compose better
Change-Id: I23277910d3fb3c08fa6e839f0fbec010915e951a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162362
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/main/ShapeController.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chart2/source/controller/main/ShapeController.cxx b/chart2/source/controller/main/ShapeController.cxx index 115229de0e57..f977259ce77b 100644 --- a/chart2/source/controller/main/ShapeController.cxx +++ b/chart2/source/controller/main/ShapeController.cxx @@ -217,8 +217,7 @@ void ShapeController::describeSupportedFeatures() IMPL_LINK( ShapeController, CheckNameHdl, AbstractSvxObjectNameDialog&, rDialog, bool ) { - OUString aName; - rDialog.GetName( aName ); + OUString aName = rDialog.GetName(); if ( !aName.isEmpty() ) { @@ -408,12 +407,9 @@ void ShapeController::executeDispatch_ObjectTitleDescription() pFact->CreateSvxObjectTitleDescDialog(pChartWindow, aTitle, aDescription, isDecorative)); if ( pDlg->Execute() == RET_OK ) { - pDlg->GetTitle( aTitle ); - pDlg->GetDescription( aDescription ); - pDlg->IsDecorative(isDecorative); - pSelectedObj->SetTitle( aTitle ); - pSelectedObj->SetDescription( aDescription ); - pSelectedObj->SetDecorative(isDecorative); + pSelectedObj->SetTitle( pDlg->GetTitle() ); + pSelectedObj->SetDescription( pDlg->GetDescription() ); + pSelectedObj->SetDecorative(pDlg->IsDecorative()); } } @@ -439,7 +435,7 @@ void ShapeController::executeDispatch_RenameObject() pDlg->SetCheckNameHdl( LINK( this, ShapeController, CheckNameHdl ) ); if ( pDlg->Execute() == RET_OK ) { - pDlg->GetName(aName); + aName = pDlg->GetName(); if (pSelectedObj->GetName() != aName) { pSelectedObj->SetName( aName ); |