summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-17 10:40:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-17 10:40:20 +0100
commit1a97d7b9a479554d4b1f937323ca993b61da2cdc (patch)
tree408435c2a0d73df0b2ff092854fb0879428c2cf0 /sal
parent414f14ffb61a3d3a22604a96239486fa4942ea73 (diff)
Don't assume sal_Unicode is unsigned short
Change-Id: I27da462b553ef11e9d9ce7873e8fedc3af8c6041
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/osxlocale.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/unx/osxlocale.cxx b/sal/osl/unx/osxlocale.cxx
index fecb2dc1e67e..6f4f028b0ca9 100644
--- a/sal/osl/unx/osxlocale.cxx
+++ b/sal/osl/unx/osxlocale.cxx
@@ -65,7 +65,8 @@ namespace
void append(rtl::OUStringBuffer & buffer, CFStringRef string) {
CFIndex n = CFStringGetLength(string);
CFStringGetCharacters(
- string, CFRangeMake(0, n), buffer.appendUninitialized(n));
+ string, CFRangeMake(0, n),
+ reinterpret_cast<UniChar *>(buffer.appendUninitialized(n)));
}
}