diff options
Diffstat (limited to 'extensions/source/ole/unotypewrapper.cxx')
-rw-r--r-- | extensions/source/ole/unotypewrapper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/ole/unotypewrapper.cxx b/extensions/source/ole/unotypewrapper.cxx index e719e8c66f43..fa12a9636e53 100644 --- a/extensions/source/ole/unotypewrapper.cxx +++ b/extensions/source/ole/unotypewrapper.cxx @@ -20,7 +20,7 @@ #include "unotypewrapper.hxx" #include "rtl/ustring.hxx" #include <osl/diagnose.h> - +#include <o3tl/char16_t2wchar_t.hxx> bool createUnoTypeWrapper(BSTR sTypeName, VARIANT * pVar) { @@ -47,7 +47,7 @@ bool createUnoTypeWrapper(BSTR sTypeName, VARIANT * pVar) bool createUnoTypeWrapper(const OUString& sTypeName, VARIANT * pVar) { - CComBSTR bstr(SAL_W(sTypeName.getStr())); + CComBSTR bstr(o3tl::toW(sTypeName.getStr())); return createUnoTypeWrapper(bstr, pVar); } |