summaryrefslogtreecommitdiff
path: root/include/svx/dlgctrl.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-23 10:55:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-23 10:56:06 +0200
commitabc42b3ea4e79581f4567420f2ed4320f5f2eb9e (patch)
treee45f9e7f9e4f368015aa47f4e7056aa9319582ab /include/svx/dlgctrl.hxx
parent116fa3a3d2e0b9652b3848bb49a5c1c2ecc570ae (diff)
use rtl::Reference in SvxPixelCtl
instead of storing both a raw pointer and an uno::Reference Change-Id: Ie9de5664452545a2a529f753e314aa4678c166fb
Diffstat (limited to 'include/svx/dlgctrl.hxx')
-rw-r--r--include/svx/dlgctrl.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx
index 07e61f525674..33b525029f87 100644
--- a/include/svx/dlgctrl.hxx
+++ b/include/svx/dlgctrl.hxx
@@ -25,6 +25,7 @@
#include <svx/rectenum.hxx>
#include <vcl/graph.hxx>
#include <svx/xtable.hxx>
+#include <rtl/ref.hxx>
#include <o3tl/typed_flags_set.hxx>
class XOBitmap;
@@ -159,6 +160,8 @@ protected:
bool bPaintable;
//Add member identifying position
Point aFocusPosition;
+ rtl::Reference<SvxPixelCtlAccessible> m_xAccess;
+
Rectangle implCalFocusRect( const Point& aPosition );
void ChangePixel( sal_uInt16 nPixel );
@@ -185,8 +188,6 @@ public:
void SetPaintable( bool bTmp ) { bPaintable = bTmp; }
void Reset();
- SvxPixelCtlAccessible* m_pAccess;
- css::uno::Reference< css::accessibility::XAccessible > m_xAccess;
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override;
long GetSquares() const { return nSquares ; }
long GetWidth() const { return aRectSize.getWidth() ; }