summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-04-29 11:03:42 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-05-02 12:54:37 +0300
commitd9d55f93c110b7a63a8c1e21d31077f57ac7fd65 (patch)
treeeee9032f2940ac4fe5aee1dbb9a0fa8999985873 /platform
parent185c6e5d3b2788e17e73a428c96445b7d614a70e (diff)
downloadqtlocation-mapboxgl-d9d55f93c110b7a63a8c1e21d31077f57ac7fd65.tar.gz
[core] Fix compilation error with older libicu versions
Diffstat (limited to 'platform')
-rw-r--r--platform/default/bidi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/bidi.cpp b/platform/default/bidi.cpp
index d9ed2658ef..a76c4bcaac 100644
--- a/platform/default/bidi.cpp
+++ b/platform/default/bidi.cpp
@@ -118,7 +118,7 @@ std::u16string BiDi::getLine(std::size_t start, std::size_t end) {
// UBIDI_DO_MIRRORING: Apply unicode mirroring of characters like parentheses
// UBIDI_REMOVE_BIDI_CONTROLS: Now that all the lines are set, remove control characters so that
// they don't show up on screen (some fonts have glyphs representing them)
- ubidi_writeReordered(impl->bidiLine, &outputText[0], outputLength,
+ ubidi_writeReordered(impl->bidiLine, mbgl::utf16char_cast<UChar*>(&outputText[0]), outputLength,
UBIDI_DO_MIRRORING | UBIDI_REMOVE_BIDI_CONTROLS, &errorCode);
if (U_FAILURE(errorCode)) {