chart2/source/controller/main/ChartController.cxx | 2 +- chart2/source/controller/main/ChartController_Insert.cxx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 9e438e7c169f626fb7a5337d645bf92269b52d5e Author: codewithvk <vivek.jav...@collabora.com> AuthorDate: Sun Feb 4 19:56:55 2024 +0530 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Wed Feb 7 07:29:04 2024 +0100 Fix: Convert 'runAsync' class-based calls to static method calls for chart properties Signed-off-by: codewithvk <vivek.jav...@collabora.com> Change-Id: Ib368c2bbb5657a2dbf1b7f340bc9fb0b6f436713 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162975 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index e234900564e0..fbd2968c864d 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -1368,7 +1368,7 @@ void ChartController::executeDispatch_ChartType() SolarMutexGuard aSolarGuard; //prepare and open dialog auto aDlg = std::make_shared<ChartTypeDialog>(GetChartFrame(), getChartModel()); - aDlg->runAsync(aDlg, [this, aUndoGuard](int nResult) { + weld::DialogController::runAsync(aDlg, [this, aUndoGuard](int nResult) { if (nResult == RET_OK) { impl_adaptDataSeriesAutoResize(); diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx index c35ef82d5d64..02b0b224939f 100644 --- a/chart2/source/controller/main/ChartController_Insert.cxx +++ b/chart2/source/controller/main/ChartController_Insert.cxx @@ -102,7 +102,7 @@ void ChartController::executeDispatch_InsertAxes() SolarMutexGuard aGuard; auto aDlg = std::make_shared<SchAxisDlg>(GetChartFrame(), *aDialogInput); - aDlg->runAsync(aDlg, [this, aDlg, aDialogInput, aUndoGuard](int nResult) { + weld::DialogController::runAsync(aDlg, [this, aDlg, aDialogInput, aUndoGuard](int nResult) { if ( nResult == RET_OK ) { // lock controllers till end of block @@ -287,7 +287,7 @@ void ChartController::executeDispatch_InsertTitles() SolarMutexGuard aGuard; auto aDlg = std::make_shared<SchTitleDlg>(GetChartFrame(), *aDialogInput); - aDlg->runAsync(aDlg, [this, aDlg, aDialogInput, aUndoGuard](int nResult){ + weld::DialogController::runAsync(aDlg, [this, aDlg, aDialogInput, aUndoGuard](int nResult){ if ( nResult == RET_OK ) { // lock controllers till end of block @@ -506,7 +506,7 @@ void ChartController::executeDispatch_InsertTrendline() // note: when a user pressed "OK" but didn't change any settings in the // dialog, the SfxTabDialog returns "Cancel" - aDialog->runAsync(aDialog, [this, aDialog, aItemConverter, aUndoGuard](int nResult) { + SfxTabDialogController::runAsync(aDialog, [this, aDialog, aItemConverter, aUndoGuard](int nResult) { if ( nResult == RET_OK || aDialog->DialogWasClosedWithOK() ) { const SfxItemSet* pOutItemSet = aDialog->GetOutputItemSet(); @@ -568,7 +568,7 @@ void ChartController::executeDispatch_InsertErrorBars( bool bYError ) // note: when a user pressed "OK" but didn't change any settings in the // dialog, the SfxTabDialog returns "Cancel" - aDlg->runAsync(aDlg, [this, aDlg, aItemConverter, aUndoGuard](int nResult) { + SfxTabDialogController::runAsync(aDlg, [this, aDlg, aItemConverter, aUndoGuard](int nResult) { if ( nResult == RET_OK || aDlg->DialogWasClosedWithOK() ) { const SfxItemSet* pOutItemSet = aDlg->GetOutputItemSet(); @@ -607,7 +607,7 @@ void ChartController::executeDispatch_InsertErrorBars( bool bYError ) aDlg->SetAxisMinorStepWidthForErrorBarDecimals( InsertErrorBarsDialog::getAxisMinorStepWidthForErrorBarDecimals( getChartModel(), m_xChartView, u"" ) ); - aDlg->runAsync(aDlg, [this, aDlg, aItemConverter, aUndoGuard](int nResult) { + weld::DialogController::runAsync(aDlg, [this, aDlg, aItemConverter, aUndoGuard](int nResult) { if ( nResult == RET_OK ) { SfxItemSet aOutItemSet = aItemConverter->CreateEmptyItemSet();