Title: [239274] trunk/Source/WTF
Revision
239274
Author
dba...@webkit.org
Date
2018-12-17 10:56:24 -0800 (Mon, 17 Dec 2018)

Log Message

Fix the Apple Internal Mac build with a newer SDK

* wtf/URLHelpers.cpp:
(WTF::URLHelpers::userVisibleURL):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (239273 => 239274)


--- trunk/Source/WTF/ChangeLog	2018-12-17 18:45:16 UTC (rev 239273)
+++ trunk/Source/WTF/ChangeLog	2018-12-17 18:56:24 UTC (rev 239274)
@@ -1,3 +1,10 @@
+2018-12-17  Daniel Bates  <daba...@apple.com>
+
+        Fix the Apple Internal Mac build with a newer SDK
+
+        * wtf/URLHelpers.cpp:
+        (WTF::URLHelpers::userVisibleURL):
+
 2018-12-17  Matt Lewis  <jlew...@apple.com>
 
         Unreviewed, rolling out r239254.

Modified: trunk/Source/WTF/wtf/URLHelpers.cpp (239273 => 239274)


--- trunk/Source/WTF/wtf/URLHelpers.cpp	2018-12-17 18:45:16 UTC (rev 239273)
+++ trunk/Source/WTF/wtf/URLHelpers.cpp	2018-12-17 18:56:24 UTC (rev 239274)
@@ -850,11 +850,15 @@
 
     Vector<UChar, urlBytesBufferLength> normalizedCharacters(sourceBuffer.size());
     UErrorCode uerror = U_ZERO_ERROR;
+ALLOW_DEPRECATED_DECLARATIONS_BEGIN
     int32_t normalizedLength = unorm_normalize(sourceBuffer.data(), sourceBuffer.size(), UNORM_NFC, 0, normalizedCharacters.data(), sourceBuffer.size(), &uerror);
+ALLOW_DEPRECATED_DECLARATIONS_END
     if (uerror == U_BUFFER_OVERFLOW_ERROR) {
         uerror = U_ZERO_ERROR;
         normalizedCharacters.resize(normalizedLength);
+ALLOW_DEPRECATED_DECLARATIONS_BEGIN
         normalizedLength = unorm_normalize(sourceBuffer.data(), sourceBuffer.size(), UNORM_NFC, 0, normalizedCharacters.data(), normalizedLength, &uerror);
+ALLOW_DEPRECATED_DECLARATIONS_END
     }
     if (U_FAILURE(uerror))
         return { };
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to