Use modern for-loops in WebCore/Modules - 2
[WebKit-https.git] / Source / WebCore / Modules / websockets / WebSocketHandshake.cpp
index 322aa40..551ddf2 100644 (file)
@@ -224,8 +224,8 @@ CString WebSocketHandshake::clientHandshakeMessage() const
     // order is not meaningful.  Thus, it's ok to send the order we constructed
     // the fields.
 
-    for (size_t i = 0; i < fields.size(); i++) {
-        builder.append(fields[i]);
+    for (auto& field : fields) {
+        builder.append(field);
         builder.appendLiteral("\r\n");
     }