diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.cxx b/winaccessibility/source/UAccCOM/AccComponentBase.cxx index f28e68ca9391..626c4de90c5f 100644 --- a/winaccessibility/source/UAccCOM/AccComponentBase.cxx +++ b/winaccessibility/source/UAccCOM/AccComponentBase.cxx @@ -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(GetXInterface()->getForeground()); + *foreground = static_cast(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(GetXInterface()->getBackground()); + *background = static_cast(m_xComponent->getBackground()); return S_OK; } diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.h b/winaccessibility/source/UAccCOM/AccComponentBase.h index 46903bacc717..137c5d99c4e9 100644 --- a/winaccessibility/source/UAccCOM/AccComponentBase.h +++ b/winaccessibility/source/UAccCOM/AccComponentBase.h @@ -49,8 +49,6 @@ public: protected: css::uno::Reference m_xComponent; - - css::accessibility::XAccessibleComponent* GetXInterface() { return m_xComponent.get(); } }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */