summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-17 10:41:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-17 10:41:21 +0100
commitceeeb48f15ef638a778f7d8184df8933f3a870c8 (patch)
tree085249edd8371d1d283dd7daad5d89925bccdc4d /shell
parentdccb9677482522d7f6f8a3d807af26049585b7fc (diff)
Don't assume sal_Unicode is unsigned short
Change-Id: Id3f43ba115d519e789b7eaf014734d2fd31d39cc
Diffstat (limited to 'shell')
-rw-r--r--shell/source/backends/macbe/macbackend.mm3
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();
}