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 b0ea4c567f1bdd1f3f41eda119ea373009cf56ab
Author:     codewithvk <vivek.jav...@collabora.com>
AuthorDate: Sun Feb 4 19:56:55 2024 +0530
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Feb 7 21:37:32 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>
    (cherry picked from commit 9e438e7c169f626fb7a5337d645bf92269b52d5e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163019
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/chart2/source/controller/main/ChartController.cxx 
b/chart2/source/controller/main/ChartController.cxx
index b9e2755a8d8b..29f5d9b6a24d 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -1345,7 +1345,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 671baed907a7..5c069235f7b4 100644
--- a/chart2/source/controller/main/ChartController_Insert.cxx
+++ b/chart2/source/controller/main/ChartController_Insert.cxx
@@ -104,7 +104,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
@@ -289,7 +289,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
@@ -508,7 +508,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();
@@ -570,7 +570,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();
@@ -609,7 +609,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();

Reply via email to