summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/unotypewrapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/ole/unotypewrapper.cxx b/extensions/source/ole/unotypewrapper.cxx
index da1d13207615..e719e8c66f43 100644
--- a/extensions/source/ole/unotypewrapper.cxx
+++ b/extensions/source/ole/unotypewrapper.cxx
@@ -47,7 +47,7 @@ bool createUnoTypeWrapper(BSTR sTypeName, VARIANT * pVar)
bool createUnoTypeWrapper(const OUString& sTypeName, VARIANT * pVar)
{
- CComBSTR bstr(reinterpret_cast<LPCOLESTR>(sTypeName.getStr()));
+ CComBSTR bstr(SAL_W(sTypeName.getStr()));
return createUnoTypeWrapper(bstr, pVar);
}