sw/source/uibase/docvw/edtwin.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
New commits: commit d501374751dab3f8911078cd499db0272c8007cd Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Fri Jun 27 09:13:27 2025 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Fri Jun 27 12:33:24 2025 +0200 sw a11y: Unify wasm/non-wasm code paths a bit Change-Id: Ia6935a04788a6179ec2c8cbff5ce435836fe559f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187076 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> 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 )