Don't assume sal_Unicode is unsigned short

Change-Id: I27da462b553ef11e9d9ce7873e8fedc3af8c6041
This commit is contained in:
Stephan Bergmann
2015-11-17 10:40:20 +01:00
parent 414f14ffb6
commit 1a97d7b9a4

View File

@@ -65,7 +65,8 @@ namespace
void append(rtl::OUStringBuffer & buffer, CFStringRef string) { void append(rtl::OUStringBuffer & buffer, CFStringRef string) {
CFIndex n = CFStringGetLength(string); CFIndex n = CFStringGetLength(string);
CFStringGetCharacters( CFStringGetCharacters(
string, CFRangeMake(0, n), buffer.appendUninitialized(n)); string, CFRangeMake(0, n),
reinterpret_cast<UniChar *>(buffer.appendUninitialized(n)));
} }
} }