diff options
Diffstat (limited to 'winaccessibility/source/service/AccObjectWinManager.cxx')
-rw-r--r-- | winaccessibility/source/service/AccObjectWinManager.cxx | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/winaccessibility/source/service/AccObjectWinManager.cxx b/winaccessibility/source/service/AccObjectWinManager.cxx index 963573628372..04f81875cd88 100644 --- a/winaccessibility/source/service/AccObjectWinManager.cxx +++ b/winaccessibility/source/service/AccObjectWinManager.cxx @@ -998,26 +998,13 @@ bool AccObjectWinManager::IsStateManageDescendant(XAccessible* pAccessible) * @param pXAcc XAccessible interface. * @return Com accobject interface. */ -IMAccessible* AccObjectWinManager::GetIMAccByXAcc(XAccessible* pXAcc) +IMAccessible* AccObjectWinManager::GetIAccessibleFromXAccessible(XAccessible* pXAcc) { AccObject* pAccObj = GetAccObjByXAcc(pXAcc); - if(pAccObj) - { + if (pAccObj) return pAccObj->GetIMAccessible(); - } - else - { - return nullptr; - } -} -bool AccObjectWinManager::GetIAccessibleFromXAccessible(css::accessibility::XAccessible* pXAcc, - IAccessible** ppIA) -{ - *ppIA = GetIMAccByXAcc(pXAcc); - if (*ppIA) - return true; - return false; + return nullptr; } /** |