From 64e83932264f0d708e4ce2dce9b36a933afd2fbf Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 3 Jun 2016 07:32:06 +0200 Subject: loplugin:refcounting Change-Id: Ia7bd500728e122f1f4c7ff4c020cc067e72613ca --- vcl/inc/osx/a11yfocustracker.hxx | 4 +++- vcl/osx/a11yfocustracker.cxx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/vcl/inc/osx/a11yfocustracker.hxx b/vcl/inc/osx/a11yfocustracker.hxx index bd7a52084bb0..b8872f3ff75b 100644 --- a/vcl/inc/osx/a11yfocustracker.hxx +++ b/vcl/inc/osx/a11yfocustracker.hxx @@ -41,6 +41,8 @@ class AquaA11yFocusTracker : public rtl::Static< AquaA11yFocusTracker, AquaA11yF public: AquaA11yFocusTracker(); + ~AquaA11yFocusTracker(); + css::uno::Reference< css::accessibility::XAccessible > const & getFocusedObject() { return m_xFocusedObject; }; // sets the currently focus object and notifies the FocusEventListener (if any) @@ -89,7 +91,7 @@ private: Link m_aWindowEventLink; // the UNO XAccessibilityEventListener for Documents and other non VCL objects - const css::uno::Reference< DocumentFocusListener > m_xDocumentFocusListener; + const rtl::Reference< DocumentFocusListener > m_xDocumentFocusListener; }; #endif // INCLUDED_VCL_INC_OSX_A11YFOCUSTRACKER_HXX diff --git a/vcl/osx/a11yfocustracker.cxx b/vcl/osx/a11yfocustracker.cxx index 6f9441ddef5e..1389ae3c18ea 100644 --- a/vcl/osx/a11yfocustracker.cxx +++ b/vcl/osx/a11yfocustracker.cxx @@ -96,6 +96,8 @@ AquaA11yFocusTracker::AquaA11yFocusTracker() : window_got_focus(Application::GetFocusWindow()); } +AquaA11yFocusTracker::~AquaA11yFocusTracker() {} + void AquaA11yFocusTracker::setFocusedObject(const Reference< XAccessible >& xAccessible) { if( xAccessible != m_xFocusedObject ) -- cgit