summaryrefslogtreecommitdiff
path: root/winaccessibility/source/UAccCOM/AccTable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'winaccessibility/source/UAccCOM/AccTable.cxx')
-rw-r--r--winaccessibility/source/UAccCOM/AccTable.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/winaccessibility/source/UAccCOM/AccTable.cxx b/winaccessibility/source/UAccCOM/AccTable.cxx
index bf0cc9563515..b142b525bb32 100644
--- a/winaccessibility/source/UAccCOM/AccTable.cxx
+++ b/winaccessibility/source/UAccCOM/AccTable.cxx
@@ -27,6 +27,7 @@
#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include <o3tl/char16_t2wchar_t.hxx>
+#include <systools/win32/oleauto.hxx>
#include <com/sun/star/accessibility/XAccessible.hpp>
#include "MAccessible.h"
@@ -125,7 +126,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_columnDescription(long column,
const OUString& ouStr = pRXTable->getAccessibleColumnDescription(column);
SysFreeString(*description);
- *description = SysAllocString(o3tl::toW(ouStr.getStr()));
+ *description = sal::systools::BStr::newBSTR(ouStr);
if (*description==nullptr)
return E_FAIL;
return S_OK;
@@ -323,7 +324,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTable::get_rowDescription(long row, BSTR *
const OUString& ouStr = pRXTable->getAccessibleRowDescription(row);
SysFreeString(*description);
- *description = SysAllocString(o3tl::toW(ouStr.getStr()));
+ *description = sal::systools::BStr::newBSTR(ouStr);
if (*description==nullptr)
return E_FAIL;
return S_OK;