summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-25 16:09:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-26 08:13:46 +0200
commit0d172a803054801ff42296c65cfca844ad5e8f6b (patch)
treecbabd236256fc12de12c6489fb9cf367a535e91c /starmath/inc
parentf025255bf66394ec168ae4cfc4d048c202800d16 (diff)
use rtl::Reference in SmGraphicWindow
instead of storing both a raw pointer and an uno::Reference Change-Id: Ib84809bee35c01fb590439174740d92bf4cd54bd
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/view.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index cec85a1bfefc..b41f5a78caa9 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -23,6 +23,7 @@
#include <memory>
+#include <rtl/ref.hxx>
#include <sfx2/dockwin.hxx>
#include <sfx2/viewsh.hxx>
#include <svtools/scrwin.hxx>
@@ -72,8 +73,7 @@ protected:
bool IsInlineEditEnabled() const;
private:
- css::uno::Reference<css::accessibility::XAccessible> xAccessible;
- SmGraphicAccessible* pAccessible;
+ rtl::Reference<SmGraphicAccessible> mxAccessible;
SmViewShell* pViewShell;
sal_uInt16 nZoom;
@@ -131,7 +131,7 @@ public:
using Window::GetAccessible;
SmGraphicAccessible* GetAccessible_Impl()
{
- return pAccessible;
+ return mxAccessible.get();
}
};