diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 9ec64d2e636a..5885520308fb 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -6488,15 +6488,10 @@ uno::Reference< css::accessibility::XAccessible > SwEditWin::CreateAccessible() SolarMutexGuard aGuard; // this should have happened already!!! SwWrtShell *pSh = m_rView.GetWrtShellPtr(); OSL_ENSURE( pSh, "no writer shell, no accessible object" ); - uno::Reference< - css::accessibility::XAccessible > xAcc; if( pSh ) - xAcc = pSh->CreateAccessible(); - - return xAcc; -#else - return nullptr; + return pSh->CreateAccessible(); #endif + return {}; } void QuickHelpData::Move( QuickHelpData& rCpy )