diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index 7357d0681f5a..c35a2dc05343 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -1481,15 +1481,7 @@ namespace accessibility sal_uInt32 crChar = static_cast( reinterpret_cast(anyChar.pReserved)); if (COL_AUTO == crChar ) { - uno::Reference< css::accessibility::XAccessibleComponent > xComponent; - if (mxParent.is()) - { - xComponent.set(mxParent,uno::UNO_QUERY); - } - else - { - xComponent.set(m_xAccInfo,uno::UNO_QUERY); - } + uno::Reference< css::accessibility::XAccessibleComponent > xComponent(mxParent,uno::UNO_QUERY); if (xComponent.is()) { uno::Reference< css::accessibility::XAccessibleContext > xContext(xComponent,uno::UNO_QUERY); @@ -1520,15 +1512,7 @@ namespace accessibility sal_uInt32 crCharUnderLine = static_cast( reinterpret_cast( anyCharUnderLine.pReserved)); if (COL_AUTO == crCharUnderLine ) { - uno::Reference< css::accessibility::XAccessibleComponent > xComponent; - if (mxParent.is()) - { - xComponent.set(mxParent,uno::UNO_QUERY); - } - else - { - xComponent.set(m_xAccInfo,uno::UNO_QUERY); - } + uno::Reference< css::accessibility::XAccessibleComponent > xComponent(mxParent,uno::UNO_QUERY); if (xComponent.is()) { uno::Reference< css::accessibility::XAccessibleContext > xContext(xComponent,uno::UNO_QUERY); diff --git a/include/editeng/AccessibleEditableTextPara.hxx b/include/editeng/AccessibleEditableTextPara.hxx index 142634783b2f..d55872e0b634 100644 --- a/include/editeng/AccessibleEditableTextPara.hxx +++ b/include/editeng/AccessibleEditableTextPara.hxx @@ -367,8 +367,6 @@ namespace accessibility /// Our listeners (guarded by maMutex) int mnNotifierClientId; private: - css::uno::Reference< css::accessibility::XAccessible > m_xAccInfo; - // Text paragraphs should provide FLOWS_TO and FLOWS_FROM relations (#i27138#) // the paragraph manager, which created this instance - is NULL, if // instance isn't created by AccessibleParaManager.