Changeset 220585 in webkit
- Timestamp:
- Aug 11, 2017 6:25:57 AM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r220583 r220585 1 2017-08-11 Adrian Perez de Castro <aperez@igalia.com> 2 3 [WPE] Build failure with Clang 4.0.1: no matching conversion for functional-style cast from 'pointer' (aka 'unsigned short *') to 'WTF::String' 4 https://bugs.webkit.org/show_bug.cgi?id=175477 5 6 Reviewed by Žan Doberšek. 7 8 * Shared/wpe/WebEventFactory.cpp: 9 (WebKit::singleCharacterStringForKeyEvent): Cast to UChar* to make 10 compiler choose the correct WTF::String constructor. 11 1 12 2017-08-11 Carlos Garcia Campos <cgarcia@igalia.com> 2 13 -
trunk/Source/WebKit/Shared/wpe/WebEventFactory.cpp
r216497 r220585 60 60 GUniquePtr<gunichar2> uchar16(g_ucs4_to_utf16(&event->unicode, 1, 0, &length, nullptr)); 61 61 if (uchar16) 62 return String( uchar16.get());62 return String(reinterpret_cast<UChar*>(uchar16.get()), length); 63 63 return String(); 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.