wina11y: Drop CAccComponentBase::GetXInterface

Just use the `m_xComponent` member directly, as
already happens elsewhere in these methods.

Change-Id: I1f3020e568d0d9b29576d0f446dea2f159119880
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173443
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2024-09-16 11:23:26 +01:00
parent 935b17929e
commit 730f154090
2 changed files with 3 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long*
if (!m_xComponent.is())
return E_FAIL;
const css::awt::Point& pt = GetXInterface()->getLocation();
const css::awt::Point& pt = m_xComponent->getLocation();
*x = pt.X;
*y = pt.Y;
return S_OK;
@@ -80,7 +80,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color* fo
{
return E_FAIL;
}
*foreground = static_cast<long>(GetXInterface()->getForeground());
*foreground = static_cast<long>(m_xComponent->getForeground());
return S_OK;
}
@@ -108,7 +108,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_background(IA2Color* ba
{
return E_FAIL;
}
*background = static_cast<long>(GetXInterface()->getBackground());
*background = static_cast<long>(m_xComponent->getBackground());
return S_OK;
}

View File

@@ -49,8 +49,6 @@ public:
protected:
css::uno::Reference<css::accessibility::XAccessibleComponent> m_xComponent;
css::accessibility::XAccessibleComponent* GetXInterface() { return m_xComponent.get(); }
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */