summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Shared/API/c
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2017-05-08 01:22:24 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2017-05-08 22:46:34 +0000
commit0fcedcd17cc00d3dd44c718b3cb36c1033319671 (patch)
treea794dff3274695e99c651902dde93d934ea7a5af /Source/WebKit2/Shared/API/c
parent6469f308c0f0f710544d7d55c7655384bed27795 (diff)
downloadqtwebkit-wip/next.tar.gz
Import WebKit commit b25ce6eca994718717218f56d045e75a4a22f989wip/next
Change-Id: Ied338d9a16b44b5da35d484e80a21acc284eb625 Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/WebKit2/Shared/API/c')
-rw-r--r--Source/WebKit2/Shared/API/c/WKString.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebKit2/Shared/API/c/WKString.cpp b/Source/WebKit2/Shared/API/c/WKString.cpp
index 305dd01b5..bd2f17436 100644
--- a/Source/WebKit2/Shared/API/c/WKString.cpp
+++ b/Source/WebKit2/Shared/API/c/WKString.cpp
@@ -61,7 +61,7 @@ size_t WKStringGetCharacters(WKStringRef stringRef, WKChar* buffer, size_t buffe
unsigned unsignedBufferLength = std::min<size_t>(bufferLength, std::numeric_limits<unsigned>::max());
auto substring = toImpl(stringRef)->stringView().substring(0, unsignedBufferLength);
- substring.getCharactersWithUpconvert(static_cast<UChar*>(buffer));
+ substring.getCharactersWithUpconvert(reinterpret_cast<UChar*>(buffer));
return substring.length();
}