Title: [249524] trunk/Source/WebCore
Revision
249524
Author
[email protected]
Date
2019-09-04 23:02:53 -0700 (Wed, 04 Sep 2019)

Log Message

[Win][Clang] InspectorNetworkAgent.cpp(1122,20): error: cannot decompose this type; 'std::tuple_size<const WTF::KeyValuePair<WTF::String, WTF::RefPtr<WTF::JSONImpl::Value, WTF::DumbPtrTraits<WTF::JSONImpl::Value> > >>::value' is not a valid integral const
https://bugs.webkit.org/show_bug.cgi?id=201489

Unreviewed build fix for clang-cl.

clang-cl 8 can't use a structured binding for a const struct.

No behavior change.

* inspector/agents/InspectorNetworkAgent.cpp:
(WebCore::InspectorNetworkAgent::interceptWithResponse): Not to use a structured binding for a const struct.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (249523 => 249524)


--- trunk/Source/WebCore/ChangeLog	2019-09-05 05:51:56 UTC (rev 249523)
+++ trunk/Source/WebCore/ChangeLog	2019-09-05 06:02:53 UTC (rev 249524)
@@ -1,3 +1,17 @@
+2019-09-04  Fujii Hironori  <[email protected]>
+
+        [Win][Clang] InspectorNetworkAgent.cpp(1122,20): error: cannot decompose this type; 'std::tuple_size<const WTF::KeyValuePair<WTF::String, WTF::RefPtr<WTF::JSONImpl::Value, WTF::DumbPtrTraits<WTF::JSONImpl::Value> > >>::value' is not a valid integral const
+        https://bugs.webkit.org/show_bug.cgi?id=201489
+
+        Unreviewed build fix for clang-cl.
+
+        clang-cl 8 can't use a structured binding for a const struct.
+
+        No behavior change.
+
+        * inspector/agents/InspectorNetworkAgent.cpp:
+        (WebCore::InspectorNetworkAgent::interceptWithResponse): Not to use a structured binding for a const struct.
+
 2019-09-04  Chris Dumez  <[email protected]>
 
         Unreviewed, another build fix after r249501.

Modified: trunk/Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp (249523 => 249524)


--- trunk/Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp	2019-09-05 05:51:56 UTC (rev 249523)
+++ trunk/Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp	2019-09-05 06:02:53 UTC (rev 249524)
@@ -1119,10 +1119,10 @@
         overrideResponse.setMimeType(*mimeType);
     if (headers) {
         HTTPHeaderMap explicitHeaders;
-        for (auto& [key, value] : *headers) {
+        for (auto& header : *headers) {
             String headerValue;
-            if (value->asString(headerValue))
-                explicitHeaders.add(key, headerValue);
+            if (header.value->asString(headerValue))
+                explicitHeaders.add(header.key, headerValue);
         }
         overrideResponse.setHTTPHeaderFields(WTFMove(explicitHeaders));
         overrideResponse.setHTTPHeaderField(HTTPHeaderName::ContentType, overrideResponse.mimeType());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to