winaccessibility: remove AccEventListener::m_isDisposed
It's disposed iff m_xAccessible is 0. Change-Id: I3f8bc104784adf82be43bcaf43b7573a9897f82a
This commit is contained in:
parent
83ccdb0285
commit
a2afe344c6
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user