Title: [253155] trunk/Source/WebKit
Revision
253155
Author
[email protected]
Date
2019-12-05 10:29:15 -0800 (Thu, 05 Dec 2019)

Log Message

[MSVC] WebResourceLoadStatisticsStore.h is reporting warning C4804: '/': unsafe use of type 'bool' in operation
https://bugs.webkit.org/show_bug.cgi?id=204870

Reviewed by Darin Adler.

This patch converts storageAccessGranted to a char since makeString()
does not explicitly accept bool types.

* NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h:
(WebKit::ThirdPartyDataForSpecificFirstParty::toString const):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (253154 => 253155)


--- trunk/Source/WebKit/ChangeLog	2019-12-05 18:10:02 UTC (rev 253154)
+++ trunk/Source/WebKit/ChangeLog	2019-12-05 18:29:15 UTC (rev 253155)
@@ -1,3 +1,16 @@
+2019-12-05  Kate Cheney  <[email protected]>
+
+        [MSVC] WebResourceLoadStatisticsStore.h is reporting warning C4804: '/': unsafe use of type 'bool' in operation
+        https://bugs.webkit.org/show_bug.cgi?id=204870
+
+        Reviewed by Darin Adler.
+
+        This patch converts storageAccessGranted to a char since makeString()
+        does not explicitly accept bool types.
+
+        * NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h:
+        (WebKit::ThirdPartyDataForSpecificFirstParty::toString const):
+
 2019-12-05  Philippe Normand  <[email protected]>
 
         [GLib] Display GStreamer version in about:gpu page

Modified: trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h (253154 => 253155)


--- trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h	2019-12-05 18:10:02 UTC (rev 253154)
+++ trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h	2019-12-05 18:29:15 UTC (rev 253155)
@@ -84,7 +84,7 @@
 
     String toString() const
     {
-        return makeString("Has been granted storage access under ", firstPartyDomain.string(), ": ", storageAccessGranted);
+        return makeString("Has been granted storage access under ", firstPartyDomain.string(), ": ", storageAccessGranted ? '1' : '0');
     }
 
     bool operator==(ThirdPartyDataForSpecificFirstParty const other) const
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to