diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-27 14:02:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-29 09:36:17 +0200 |
commit | bacee60a5920585feeff58840357aa7ac33e50a7 (patch) | |
tree | 75da30b17723f95d35e47e4794dd6c3537833fc1 /winaccessibility | |
parent | 7344923ffdf751646396b38af6a23be93b53a06a (diff) |
ref-counting vcl::Window subclasses
Points of discussion
--------------------
(*) where in the Window destructor should dispose() be called?
It's a seriously large method.
(*) we're going to need similar typedefs and declarations for every
single sub-class of vcl::Window, I assume that I will need to create a
macro to make it less verbose.
TODO
----
Update clang plugin to verify that:
(a) dispose() methods always call their superclass dispose()
(b) dispose() methods don't forget to clear any references owned
by that class.
Change-Id: I873d5d5166f811e2f65e49327cc98862559fcf30
Diffstat (limited to 'winaccessibility')
-rw-r--r-- | winaccessibility/source/UAccCOM/AccTextBase.cxx | 1 | ||||
-rw-r--r-- | winaccessibility/source/service/AccEventListener.cxx | 5 | ||||
-rw-r--r-- | winaccessibility/source/service/AccTopWindowListener.cxx | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/winaccessibility/source/UAccCOM/AccTextBase.cxx b/winaccessibility/source/UAccCOM/AccTextBase.cxx index d73f8e3db11e..156ef30c21eb 100644 --- a/winaccessibility/source/UAccCOM/AccTextBase.cxx +++ b/winaccessibility/source/UAccCOM/AccTextBase.cxx @@ -36,7 +36,6 @@ using namespace com::sun::star::accessibility; using namespace com::sun::star::uno; -using namespace rtl; // Construction/Destruction diff --git a/winaccessibility/source/service/AccEventListener.cxx b/winaccessibility/source/service/AccEventListener.cxx index 7874f4706321..7b8811625754 100644 --- a/winaccessibility/source/service/AccEventListener.cxx +++ b/winaccessibility/source/service/AccEventListener.cxx @@ -40,7 +40,6 @@ using namespace com::sun::star::uno; using namespace com::sun::star::accessibility; -using namespace rtl; using namespace cppu; AccEventListener::AccEventListener(com::sun::star::accessibility::XAccessible* pAcc, @@ -202,7 +201,7 @@ void AccEventListener::FireStatePropertyChange(short /*state*/, bool set ) */ short AccEventListener::GetRole() { - Reference<com::sun::star::accessibility::XAccessibleContext> const + css::uno::Reference<com::sun::star::accessibility::XAccessibleContext> const xContext(m_xAccessible->getAccessibleContext()); if(xContext.is()) { @@ -235,7 +234,7 @@ void AccEventListener::RemoveMeFromBroadcaster() } try { - Reference<XAccessibleEventBroadcaster> const xBroadcaster( + css::uno::Reference<XAccessibleEventBroadcaster> const xBroadcaster( m_xAccessible->getAccessibleContext(), UNO_QUERY); if (xBroadcaster.is()) { diff --git a/winaccessibility/source/service/AccTopWindowListener.cxx b/winaccessibility/source/service/AccTopWindowListener.cxx index ef89bfb0299d..e18c0c346352 100644 --- a/winaccessibility/source/service/AccTopWindowListener.cxx +++ b/winaccessibility/source/service/AccTopWindowListener.cxx @@ -41,7 +41,6 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; using namespace com::sun::star::bridge; using namespace com::sun::star::awt; -using namespace rtl; using namespace cppu; /** |