summaryrefslogtreecommitdiff
path: root/winaccessibility/source/service/msaaservice_impl.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-29 22:39:33 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-03 20:41:01 +0100
commitdcbf2c405870bdf8d7f94e1ea64c91ce685c22e4 (patch)
tree5adee12d9bead9c248ecd2b6cef6019ed507a6e7 /winaccessibility/source/service/msaaservice_impl.cxx
parent97e4c624024dc2afbbbcfe13caf4470908c95390 (diff)
winaccessibility: remove global g_acc_manager
It is possible to retrieve it via the AccTopWindowListener. Change-Id: I6cc5ab25bc937d0d9f4de54a1bed09a76ce27491 (cherry picked from commit fabca7370e22f96ae041dc179475b35c87ac53ec)
Diffstat (limited to 'winaccessibility/source/service/msaaservice_impl.cxx')
-rw-r--r--winaccessibility/source/service/msaaservice_impl.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/winaccessibility/source/service/msaaservice_impl.cxx b/winaccessibility/source/service/msaaservice_impl.cxx
index e5e1231c0df3..c9ea14cfdbc0 100644
--- a/winaccessibility/source/service/msaaservice_impl.cxx
+++ b/winaccessibility/source/service/msaaservice_impl.cxx
@@ -41,7 +41,6 @@ using namespace ::com::sun::star::accessibility;
using namespace ::com::sun::star::awt;
#include "AccTopWindowListener.hxx"
-#include "g_msacc.hxx"
namespace my_sc_impl
{
@@ -95,7 +94,11 @@ throw (RuntimeException)
{
SolarMutexGuard g;
- return GetMSComPtr( hWnd, lParam, wParam );
+ if (!m_pTopWindowListener.is())
+ {
+ return 0;
+ }
+ return m_pTopWindowListener->GetMSComPtr(hWnd, lParam, wParam);
}
/**