summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-26 20:33:32 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-28 00:59:51 +0100
commita2afe344c6badf432983ce341d4154441837baf3 (patch)
treeec744f78a586384df8616a0e82f9f2ed3415d459 /winaccessibility
parent83ccdb028529e85fe4c06a47ca57a4a5eeeed159 (diff)
winaccessibility: remove AccEventListener::m_isDisposed
It's disposed iff m_xAccessible is 0. Change-Id: I3f8bc104784adf82be43bcaf43b7573a9897f82a
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/inc/AccEventListener.hxx2
-rw-r--r--winaccessibility/source/service/AccEventListener.cxx5
2 files changed, 0 insertions, 7 deletions
diff --git a/winaccessibility/inc/AccEventListener.hxx b/winaccessibility/inc/AccEventListener.hxx
index f17fb2fba828..8f544005bba6 100644
--- a/winaccessibility/inc/AccEventListener.hxx
+++ b/winaccessibility/inc/AccEventListener.hxx
@@ -44,8 +44,6 @@ protected:
com::sun::star::accessibility::XAccessible> m_xAccessible;
//agent pointer for objects' manager
AccObjectManagerAgent* pAgent;
- //disposed state indicator
- bool m_isDisposed;
public:
AccEventListener( com::sun::star::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
virtual ~AccEventListener();
diff --git a/winaccessibility/source/service/AccEventListener.cxx b/winaccessibility/source/service/AccEventListener.cxx
index d52b1142882d..73b043111f69 100644
--- a/winaccessibility/source/service/AccEventListener.cxx
+++ b/winaccessibility/source/service/AccEventListener.cxx
@@ -47,7 +47,6 @@ AccEventListener::AccEventListener(com::sun::star::accessibility::XAccessible* p
AccObjectManagerAgent* Agent)
: m_xAccessible(pAcc)
, pAgent(Agent)
- , m_isDisposed(false)
{}
AccEventListener::~AccEventListener()
@@ -230,9 +229,6 @@ void AccEventListener::RemoveMeFromBroadcaster()
{
try
{
- if(m_isDisposed)
- return;
-
if (!m_xAccessible.is())
{
return;
@@ -243,7 +239,6 @@ void AccEventListener::RemoveMeFromBroadcaster()
{
//remove the lister from accessible object
xBroadcaster->removeAccessibleEventListener(this);
- m_isDisposed = true;
pAgent->NotifyDestroy(m_xAccessible.get());
}
m_xAccessible.clear(); // release cyclic reference