diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-23 13:54:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-24 07:03:11 +0200 |
commit | 8d611dcc31ee851ddd0a3f96f1fe202ee7bb9eb2 (patch) | |
tree | bec429d8d05c13194b82d87efb35de448c569334 /chart2/inc/ChartModel.hxx | |
parent | 12643f416102c868309ba8d082ea91726045f0d1 (diff) |
use rtl::Reference in ChartModel
instead of storing both a raw pointer and an uno::Reference
Change-Id: I86846c2c756255eb5627a4b1e5144c41865db895
Diffstat (limited to 'chart2/inc/ChartModel.hxx')
-rw-r--r-- | chart2/inc/ChartModel.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/inc/ChartModel.hxx b/chart2/inc/ChartModel.hxx index 4cbdbfd5defa..0a0889138a40 100644 --- a/chart2/inc/ChartModel.hxx +++ b/chart2/inc/ChartModel.hxx @@ -122,8 +122,7 @@ private: bool mbTimeBased; - css::uno::Reference< css::uno::XInterface > xChartView; // for the ref count - ChartView* mpChartView; + rtl::Reference<ChartView> mxChartView; OUString m_aResource; css::uno::Sequence< css::beans::PropertyValue > m_aMediaDescriptor; @@ -572,7 +571,7 @@ public: css::uno::Reference< css::util::XNumberFormatsSupplier > const & getNumberFormatsSupplier(); - const css::uno::Reference< css::uno::XInterface >& getChartView() { return xChartView;} + css::uno::Reference< css::uno::XInterface > getChartView() const; bool isTimeBased() const { return mbTimeBased;} void setTimeBased(bool bTimeBased); |