diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-16 14:40:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-16 14:40:33 +0200 |
commit | 3f4ea7a6477c9314fd4b407035b56e7669527bf4 (patch) | |
tree | f37e7ac73cceb0265fb7f8d944dac87939bc9174 /sw/source/core/doc/docchart.cxx | |
parent | dd00b2311a6d4dd381512e95ffe00dc5845dcaed (diff) |
rtl::Reference fits just fine here
Change-Id: If06465ebad4083b8cdcd102ed0bbc6f61e78410f
Diffstat (limited to 'sw/source/core/doc/docchart.cxx')
-rw-r--r-- | sw/source/core/doc/docchart.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx index 2f25fdbd49f4..9902337ac2ec 100644 --- a/sw/source/core/doc/docchart.cxx +++ b/sw/source/core/doc/docchart.cxx @@ -204,10 +204,9 @@ SwChartDataProvider * SwDoc::GetChartDataProvider( bool bCreate ) const // we need a mutex here SolarMutexGuard aGuard; - if (bCreate && !maChartDataProviderImplRef.get()) + if (bCreate && !maChartDataProviderImplRef.is()) { - maChartDataProviderImplRef = comphelper::ImplementationReference< SwChartDataProvider - , chart2::data::XDataProvider >( new SwChartDataProvider( this ) ); + maChartDataProviderImplRef = new SwChartDataProvider( this ); } return maChartDataProviderImplRef.get(); } |