Kaydet (Commit) 4b7d3395 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Don't assume sal_Unicode is unsigned short

Change-Id: I721f53d79cd3e2c24542382d519a909a86a31111
üst 6e6c0951
...@@ -196,7 +196,7 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry, ...@@ -196,7 +196,7 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry,
candidate.append( candidate.append(
reinterpret_cast<sal_Unicode *>(&idx[2][address])); reinterpret_cast<sal_Unicode *>(&idx[2][address]));
else else
candidate.append(address); candidate.append(sal_Unicode(address));
} else } else
candidate.append(" "); candidate.append(" ");
} }
......
...@@ -70,7 +70,7 @@ namespace /* private */ ...@@ -70,7 +70,7 @@ namespace /* private */
{ {
CFIndex lstr = CFStringGetLength(s); CFIndex lstr = CFStringGetLength(s);
for (CFIndex i = 0; i < lstr; i++) for (CFIndex i = 0; i < lstr; i++)
buffer.append(CFStringGetCharacterAtIndex(s, i)); buffer.append(sal_Unicode(CFStringGetCharacterAtIndex(s, i)));
} }
template <typename T> template <typename T>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment