chart2/source/tools/DataSeriesHelper.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 11fccfffdcc2269e79d2a41dca26fed05a04a7f2
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Fri Apr 11 18:56:31 2025 +0200
Commit:     Noel Grandin <noelgran...@gmail.com>
CommitDate: Sat Apr 12 19:47:27 2025 +0200

    no need to dynamic_cast here
    
    all the call-sites already have the concrete type
    
    Change-Id: Ic15f4ed56cb563b966c05bfb41811c7d79ff185c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184067
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/chart2/source/tools/DataSeriesHelper.cxx 
b/chart2/source/tools/DataSeriesHelper.cxx
index 0880d30914f9..6de10a3a9447 100644
--- a/chart2/source/tools/DataSeriesHelper.cxx
+++ b/chart2/source/tools/DataSeriesHelper.cxx
@@ -87,15 +87,14 @@ private:
 
 void lcl_getCooSysAndChartTypeOfSeries(
     const rtl::Reference< ::chart::DataSeries > & xSeries,
-    const Reference< chart2::XDiagram > & xDiagram,
+    const rtl::Reference< ::chart::Diagram > & xDiagram,
     rtl::Reference< ::chart::BaseCoordinateSystem > & xOutCooSys,
     rtl::Reference< ::chart::ChartType > & xOutChartType )
 {
     if( !xDiagram.is())
         return;
-    ::chart::Diagram* pDiagram = 
dynamic_cast<::chart::Diagram*>(xDiagram.get());
 
-    for( rtl::Reference< ::chart::BaseCoordinateSystem > const & coords : 
pDiagram->getBaseCoordinateSystems() )
+    for( rtl::Reference< ::chart::BaseCoordinateSystem > const & coords : 
xDiagram->getBaseCoordinateSystems() )
     {
         for( rtl::Reference< ::chart::ChartType > const & chartType : 
coords->getChartTypes2() )
         {

Reply via email to