chart2/source/controller/main/ChartController.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 288001be6802cc41c445067a2d690371606202c3
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Mon Nov 13 13:33:00 2023 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Mon Nov 13 14:39:38 2023 +0100

    Fix warning for emscripten build
    
    TB lo_daily_tb_linux_wasm shows:
    
/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/chart2/source/controller/main/ChartController.cxx:1557:71:
 warning: unused parameter 'rAccChartView' [-Wunused-parameter]
    void ChartController::impl_initializeAccessible( AccessibleChartView& 
rAccChartView )
                                                                          ^
    1 warning generated.
    
    Change-Id: If584e6944c1d9105a7a8b7170dc1022911b57bf9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159373
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
    Tested-by: Jenkins

diff --git a/chart2/source/controller/main/ChartController.cxx 
b/chart2/source/controller/main/ChartController.cxx
index b4be568b5133..666d6b636740 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -1554,9 +1554,9 @@ void ChartController::impl_initializeAccessible()
         impl_initializeAccessible( dynamic_cast<AccessibleChartView&>(*xInit) 
);
 #endif
 }
+#if !ENABLE_WASM_STRIP_ACCESSIBILITY
 void ChartController::impl_initializeAccessible( AccessibleChartView& 
rAccChartView )
 {
-#if !ENABLE_WASM_STRIP_ACCESSIBILITY
     uno::Reference< XAccessible > xParent;
     {
         SolarMutexGuard aGuard;
@@ -1570,8 +1570,10 @@ void ChartController::impl_initializeAccessible( 
AccessibleChartView& rAccChartV
     }
 
     rAccChartView.initialize(*this, getChartModel(), m_xChartView, xParent, 
m_xViewWindow);
-#endif
 }
+#else
+void ChartController::impl_initializeAccessible( AccessibleChartView& /* 
rAccChartView */) {}
+#endif
 
 const o3tl::sorted_vector< OUString >& 
ChartController::impl_getAvailableCommands()
 {

Reply via email to