summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/ControllerCommandDispatch.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-23 14:11:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-24 07:03:11 +0200
commit33319078e965d4597db9c7ce72ab910f3e0d4e7d (patch)
tree55d03455f1b312ea185e7907b7aa67fd1a73e54a /chart2/source/controller/main/ControllerCommandDispatch.hxx
parent8d611dcc31ee851ddd0a3f96f1fe202ee7bb9eb2 (diff)
use rtl::Reference in ControllerCommandDispatch
rather than storing both a raw pointer and an uno::Reference Change-Id: I46496da508689d82211940da765d53378f72fd7a
Diffstat (limited to 'chart2/source/controller/main/ControllerCommandDispatch.hxx')
-rw-r--r--chart2/source/controller/main/ControllerCommandDispatch.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.hxx b/chart2/source/controller/main/ControllerCommandDispatch.hxx
index 0c7fcfdf6e1b..8afbc619e68f 100644
--- a/chart2/source/controller/main/ControllerCommandDispatch.hxx
+++ b/chart2/source/controller/main/ControllerCommandDispatch.hxx
@@ -24,6 +24,7 @@
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <cppuhelper/implbase.hxx>
+#include <rtl/ref.hxx>
#include <memory>
@@ -104,8 +105,7 @@ private:
bool isShapeControllerCommandAvailable( const OUString& rCommand );
- ChartController* m_pChartController;
- css::uno::Reference< css::frame::XController > m_xController;
+ rtl::Reference<ChartController> m_xChartController;
css::uno::Reference< css::view::XSelectionSupplier > m_xSelectionSupplier;
css::uno::Reference< css::frame::XDispatch > m_xDispatch;