diff options
Diffstat (limited to 'test/source/chart/xchartdata.cxx')
-rw-r--r-- | test/source/chart/xchartdata.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/source/chart/xchartdata.cxx b/test/source/chart/xchartdata.cxx index dcecf33a0c3d..68a9b82f191e 100644 --- a/test/source/chart/xchartdata.cxx +++ b/test/source/chart/xchartdata.cxx @@ -67,11 +67,11 @@ void XChartData::testChartDataChangeEventListener() rtl::Reference<MockedChartDataChangeEventListener> pListener0 = new MockedChartDataChangeEventListener(); xCD->addChartDataChangeEventListener( - uno::Reference<chart::XChartDataChangeEventListener>(pListener0.get())); + uno::Reference<chart::XChartDataChangeEventListener>(pListener0)); rtl::Reference<MockedChartDataChangeEventListener> pListener1 = new MockedChartDataChangeEventListener(); xCD->addChartDataChangeEventListener( - uno::Reference<chart::XChartDataChangeEventListener>(pListener1.get())); + uno::Reference<chart::XChartDataChangeEventListener>(pListener1)); uno::Reference<chart::XChartDataArray> xCDD(xCD, uno::UNO_QUERY_THROW); uno::Sequence<uno::Sequence<double>> aData = xCDD->getData(); @@ -84,7 +84,7 @@ void XChartData::testChartDataChangeEventListener() pListener1->m_bListenerCalled = false; xCD->removeChartDataChangeEventListener( - uno::Reference<chart::XChartDataChangeEventListener>(pListener1.get())); + uno::Reference<chart::XChartDataChangeEventListener>(pListener1)); aData[0][0] += 1.0; xCDD->setData(aData); CPPUNIT_ASSERT(pListener0->m_bListenerCalled); |