summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-01-19 19:12:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-19 20:54:52 +0100
commit79a2b786d3c39a4a756fb13778e437a20758caf8 (patch)
tree0b5b551185ad782307bf37a022ea481b24425e8f /chart2/source/controller/chartapiwrapper
parentea1cc9899a85e4379ea2c512d56d9b950c63b8f5 (diff)
use more concrete types in chart2, InternalDataProvider
Change-Id: Iee2cc56b00f0464e652a14eace2640e5d798eb5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128629 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/chartapiwrapper')
-rw-r--r--chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
index 32bee8d42c50..3b0a56818e77 100644
--- a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
@@ -21,6 +21,7 @@
#include <DiagramHelper.hxx>
#include <DataSourceHelper.hxx>
#include <ChartModelHelper.hxx>
+#include <InternalDataProvider.hxx>
#include <ControllerLockGuard.hxx>
#include "Chart2ModelContact.hxx"
#include <cppuhelper/supportsservice.hxx>
@@ -589,8 +590,9 @@ void ChartDataWrapper::initDataAccess()
else
{
//create a separate "internal data provider" that is not connected to the model
- m_xDataAccess.set( ChartModelHelper::createInternalDataProvider(
- xChartDoc, false /*bConnectToModel*/ ), uno::UNO_QUERY_THROW );
+ auto xInternal = ChartModelHelper::createInternalDataProvider(
+ xChartDoc, false /*bConnectToModel*/ );
+ m_xDataAccess.set( static_cast<cppu::OWeakObject*>(xInternal.get()), uno::UNO_QUERY_THROW );
}
}