summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-08 09:05:03 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-08 13:35:27 +0200
commitce18ff2e7df7f5162ac18da18796b2623b500768 (patch)
treef559b64e541a62e6f1d6d1b27bcb17912cc4dae6 /chart2
parente4a1c45a0bad3677d0b131ef9c6ac6e3c4bdb03c (diff)
cid#1607356 COPY_INSTEAD_OF_MOVE
and cid#1607117 COPY_INSTEAD_OF_MOVE cid#1607089 COPY_INSTEAD_OF_MOVE cid#1606977 COPY_INSTEAD_OF_MOVE cid#1606899 COPY_INSTEAD_OF_MOVE cid#1606785 COPY_INSTEAD_OF_MOVE cid#1606769 COPY_INSTEAD_OF_MOVE cid#1606740 COPY_INSTEAD_OF_MOVE cid#1606738 COPY_INSTEAD_OF_MOVE cid#1606675 COPY_INSTEAD_OF_MOVE cid#1606533 COPY_INSTEAD_OF_MOVE cid#1558100 COPY_INSTEAD_OF_MOVE cid#1558098 COPY_INSTEAD_OF_MOVE cid#1558083 COPY_INSTEAD_OF_MOVE cid#1558077 COPY_INSTEAD_OF_MOVE cid#1558074 COPY_INSTEAD_OF_MOVE Change-Id: Ica17dec2c2102ef85283fd883a0a4e64aec307c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171620 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Insert.cxx36
1 files changed, 19 insertions, 17 deletions
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx
index c5d0822346bc..707ca4b0e702 100644
--- a/chart2/source/controller/main/ChartController_Insert.cxx
+++ b/chart2/source/controller/main/ChartController_Insert.cxx
@@ -94,14 +94,14 @@ void ChartController::executeDispatch_InsertAxes()
try
{
- auto aDialogInput = std::make_shared<InsertAxisOrGridDialogData>();
+ auto xDialogInput = std::make_shared<InsertAxisOrGridDialogData>();
rtl::Reference< Diagram > xDiagram = getFirstDiagram();
- AxisHelper::getAxisOrGridExistence( aDialogInput->aExistenceList, xDiagram );
- AxisHelper::getAxisOrGridPossibilities( aDialogInput->aPossibilityList, xDiagram );
+ AxisHelper::getAxisOrGridExistence( xDialogInput->aExistenceList, xDiagram );
+ AxisHelper::getAxisOrGridPossibilities( xDialogInput->aPossibilityList, xDiagram );
SolarMutexGuard aGuard;
- auto aDlg = std::make_shared<SchAxisDlg>(GetChartFrame(), *aDialogInput);
- weld::DialogController::runAsync(aDlg, [this, aDlg, aDialogInput=std::move(aDialogInput),
+ auto aDlg = std::make_shared<SchAxisDlg>(GetChartFrame(), *xDialogInput);
+ weld::DialogController::runAsync(aDlg, [this, aDlg, xDialogInput=std::move(xDialogInput),
xUndoGuard=std::move(xUndoGuard)](int nResult) {
if ( nResult == RET_OK )
{
@@ -112,7 +112,7 @@ void ChartController::executeDispatch_InsertAxes()
aDlg->getResult(aDialogOutput);
ReferenceSizeProvider aRefSizeProvider(impl_createReferenceSizeProvider());
bool bChanged = AxisHelper::changeVisibilityOfAxes( getFirstDiagram()
- , aDialogInput->aExistenceList, aDialogOutput.aExistenceList, m_xCC
+ , xDialogInput->aExistenceList, aDialogOutput.aExistenceList, m_xCC
, &aRefSizeProvider );
if( bChanged )
xUndoGuard->commit();
@@ -281,19 +281,20 @@ void ChartController::executeDispatch_InsertTitles()
try
{
- auto aDialogInput = std::make_shared<TitleDialogData>();
- aDialogInput->readFromModel( getChartModel() );
+ auto xDialogInput = std::make_shared<TitleDialogData>();
+ xDialogInput->readFromModel( getChartModel() );
SolarMutexGuard aGuard;
- auto aDlg = std::make_shared<SchTitleDlg>(GetChartFrame(), *aDialogInput);
- weld::DialogController::runAsync(aDlg, [this, aDlg, aDialogInput, xUndoGuard=std::move(xUndoGuard)](int nResult){
+ auto aDlg = std::make_shared<SchTitleDlg>(GetChartFrame(), *xDialogInput);
+ weld::DialogController::runAsync(aDlg, [this, aDlg, xDialogInput=std::move(xDialogInput),
+ xUndoGuard=std::move(xUndoGuard)](int nResult){
if ( nResult == RET_OK )
{
// lock controllers till end of block
ControllerLockGuardUNO aCLGuard( getChartModel() );
TitleDialogData aDialogOutput( impl_createReferenceSizeProvider() );
aDlg->getResult( aDialogOutput );
- bool bChanged = aDialogOutput.writeDifferenceToModel( getChartModel(), m_xCC, aDialogInput.get() );
+ bool bChanged = aDialogOutput.writeDifferenceToModel( getChartModel(), m_xCC, xDialogInput.get() );
if( bChanged )
xUndoGuard->commit();
}
@@ -590,10 +591,10 @@ void ChartController::executeDispatch_InsertErrorBars( bool bYError )
try
{
- auto aItemConverter = std::make_shared<wrapper::AllSeriesStatisticsConverter>(
+ auto xItemConverter = std::make_shared<wrapper::AllSeriesStatisticsConverter>(
getChartModel(), m_pDrawModelWrapper->GetItemPool() );
- SfxItemSet aItemSet = aItemConverter->CreateEmptyItemSet();
- aItemConverter->FillItemSet( aItemSet );
+ SfxItemSet aItemSet = xItemConverter->CreateEmptyItemSet();
+ xItemConverter->FillItemSet( aItemSet );
//prepare and open dialog
SolarMutexGuard aGuard;
@@ -605,15 +606,16 @@ void ChartController::executeDispatch_InsertErrorBars( bool bYError )
aDlg->SetAxisMinorStepWidthForErrorBarDecimals(
InsertErrorBarsDialog::getAxisMinorStepWidthForErrorBarDecimals( getChartModel(), m_xChartView, u"" ) );
- weld::DialogController::runAsync(aDlg, [this, aDlg, aItemConverter, xUndoGuard=std::move(xUndoGuard)](int nResult) {
+ weld::DialogController::runAsync(aDlg, [this, aDlg, xItemConverter=std::move(xItemConverter),
+ xUndoGuard=std::move(xUndoGuard)](int nResult) {
if ( nResult == RET_OK )
{
- SfxItemSet aOutItemSet = aItemConverter->CreateEmptyItemSet();
+ SfxItemSet aOutItemSet = xItemConverter->CreateEmptyItemSet();
aDlg->FillItemSet( aOutItemSet );
// lock controllers till end of block
ControllerLockGuardUNO aCLGuard( getChartModel() );
- bool bChanged = aItemConverter->ApplyItemSet( aOutItemSet );//model should be changed now
+ bool bChanged = xItemConverter->ApplyItemSet( aOutItemSet );//model should be changed now
if( bChanged )
xUndoGuard->commit();
}