winaccessibility/source/UAccCOM/MAccessible.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 480281006ff9ea43fe6e9c357909ed55d0011c8f Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Thu Aug 22 07:51:31 2024 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Thu Aug 22 12:34:27 2024 +0200 wina11y: Use sal::systools::BStr::newBSTR here, too As commit 02c0e5f970dee4d064fcb26b378cbfe6f3a1bc05 Author: Mike Kaganski <mike.kagan...@collabora.com> Date: Wed Aug 21 13:42:28 2024 +0500 Simplify BSTR construction from OUString a bit did in other existing code, switch to using `sal::systools::BStr::newBSTR` in this case newly added in commit dfd23124096b9428f2f7084a24de032750389c79 Author: Michael Weghorn <m.wegh...@posteo.de> Date: Wed Aug 21 10:16:51 2024 +0100 wina11y: Retrieve default action description on demand , merged shortly after existing code was adjusted. Change-Id: Ic27a31ce22410d6d976295336bf97ada3881788b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172236 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx index 81ca05856ab1..cdc90cfb82bd 100644 --- a/winaccessibility/source/UAccCOM/MAccessible.cxx +++ b/winaccessibility/source/UAccCOM/MAccessible.cxx @@ -2163,7 +2163,7 @@ COM_DECLSPEC_NOTHROW HRESULT STDMETHODCALLTYPE CMAccessible::get_accDefaultActio const OUString sActionDescription = xAction->getAccessibleActionDescription(0); SysFreeString(*pszDefaultAction); - *pszDefaultAction = SysAllocString(o3tl::toW(sActionDescription.getStr())); + *pszDefaultAction = sal::systools::BStr::newBSTR(sActionDescription); return S_OK; }