diff options
Diffstat (limited to 'chart2/source/tools/InternalDataProvider.cxx')
-rw-r--r-- | chart2/source/tools/InternalDataProvider.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index 3e1f8372a7b2..71285ab6c7e7 100644 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -1147,9 +1147,8 @@ void SAL_CALL InternalDataProvider::registerDataSequenceForChanges( const Refere void SAL_CALL InternalDataProvider::insertDataSeries(::sal_Int32 nAfterIndex) { // call the dialog insertion - rtl::Reference<ChartModel> xChartModel(m_xChartModel); - DataBrowserModel* pDBM = new DataBrowserModel(xChartModel); - pDBM->insertDataSeries(nAfterIndex); + DataBrowserModel aDBM(m_xChartModel); + aDBM.insertDataSeries(nAfterIndex); } // ____ XRangeXMLConversion ____ |