summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/tools/InternalDataProvider.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx
index 16a24836df0a..9d58f0bc7e8d 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -1169,9 +1169,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 ____