Fix the WPE build.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Aug 2019 03:17:39 +0000 (03:17 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Aug 2019 03:17:39 +0000 (03:17 +0000)
* platform/libwpe/PlatformKeyboardEventLibWPE.cpp:
(WebCore::PlatformKeyboardEvent::keyValueForWPEKeyCode):
(WebCore::PlatformKeyboardEvent::singleCharacterString):
Update for rename from StringBuilder::append(UChar32) to StringBuilder::appendCharacter(UChar32).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248660 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/libwpe/PlatformKeyboardEventLibWPE.cpp

index 192d5e8..01d8415 100644 (file)
@@ -1,5 +1,14 @@
 2019-08-13  Sam Weinig  <weinig@apple.com>
 
+        Fix the WPE build.
+
+        * platform/libwpe/PlatformKeyboardEventLibWPE.cpp:
+        (WebCore::PlatformKeyboardEvent::keyValueForWPEKeyCode):
+        (WebCore::PlatformKeyboardEvent::singleCharacterString):
+        Update for rename from StringBuilder::append(UChar32) to StringBuilder::appendCharacter(UChar32).
+
+2019-08-13  Sam Weinig  <weinig@apple.com>
+
         Rename StringBuilder::append(UChar32) to StringBuilder::appendCharacter(UChar32) to avoid accidental change in behavior when replacing append with flexibleAppend
         https://bugs.webkit.org/show_bug.cgi?id=200675
 
index c65de80..cf46da1 100644 (file)
@@ -432,7 +432,7 @@ String PlatformKeyboardEvent::keyValueForWPEKeyCode(unsigned keyCode)
     UChar32 unicodeCharacter = wpe_key_code_to_unicode(keyCode);
     if (unicodeCharacter && U_IS_UNICODE_CHAR(unicodeCharacter)) {
         StringBuilder builder;
-        builder.append(unicodeCharacter);
+        builder.appendCharacter(unicodeCharacter);
         return builder.toString();
     }
 
@@ -1309,7 +1309,7 @@ String PlatformKeyboardEvent::singleCharacterString(unsigned val)
     UChar32 unicodeCharacter = wpe_key_code_to_unicode(val);
     if (unicodeCharacter && U_IS_UNICODE_CHAR(unicodeCharacter)) {
         StringBuilder builder;
-        builder.append(unicodeCharacter);
+        builder.appendCharacter(unicodeCharacter);
         return builder.toString();
     }