summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-03 07:32:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-03 07:32:06 +0200
commit64e83932264f0d708e4ce2dce9b36a933afd2fbf (patch)
tree6ff7078a08ceeccd5fb39bd239e6951dd5e4ed24 /vcl
parent6b3b352b06d92ef20194b9a992a521af2ef07b48 (diff)
loplugin:refcounting
Change-Id: Ia7bd500728e122f1f4c7ff4c020cc067e72613ca
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/osx/a11yfocustracker.hxx4
-rw-r--r--vcl/osx/a11yfocustracker.cxx2
2 files changed, 5 insertions, 1 deletions
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<VclSimpleEvent&,void> 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 )