diff options
Diffstat (limited to 'shell/source/backends/macbe/macbackend.mm')
-rw-r--r-- | shell/source/backends/macbe/macbackend.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/backends/macbe/macbackend.mm b/shell/source/backends/macbe/macbackend.mm index 4cfd0606fb29..458446f7dee4 100644 --- a/shell/source/backends/macbe/macbackend.mm +++ b/shell/source/backends/macbe/macbackend.mm @@ -197,7 +197,8 @@ rtl::OUString GetOUString( NSString* pStr ) rtl::OUStringBuffer aBuf( nLen+1 ); aBuf.setLength( nLen ); - [pStr getCharacters: const_cast<sal_Unicode*>(aBuf.getStr())]; + [pStr getCharacters: + reinterpret_cast<unichar *>(const_cast<sal_Unicode*>(aBuf.getStr()))]; return aBuf.makeStringAndClear(); } |