diff options
author | André Klitzing <aklitzing@gmail.com> | 2016-08-23 08:12:38 +0200 |
---|---|---|
committer | André Klitzing <aklitzing@gmail.com> | 2016-08-23 08:54:36 +0000 |
commit | c8983382b26a3a701099bfcac5fdf22a4bed21da (patch) | |
tree | 5387e73223961b9c8504cdeb4b9ccb8b1449f089 /src/websockets/qwebsockethandshakeresponse.cpp | |
parent | ec201d18949e4f5af0ab3804ef87aba75fba8f7f (diff) | |
download | qtwebsockets-c8983382b26a3a701099bfcac5fdf22a4bed21da.tar.gz |
Eradicate Q_FOREACH loops
Change-Id: I08541a4162ceb4ba101ed44d65143dda6eb84e3d
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/websockets/qwebsockethandshakeresponse.cpp')
-rw-r--r-- | src/websockets/qwebsockethandshakeresponse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsockethandshakeresponse.cpp b/src/websockets/qwebsockethandshakeresponse.cpp index b5e1052..ee57d5c 100644 --- a/src/websockets/qwebsockethandshakeresponse.cpp +++ b/src/websockets/qwebsockethandshakeresponse.cpp @@ -207,7 +207,7 @@ QString QWebSocketHandshakeResponse::getHandshakeResponse( if (Q_UNLIKELY(!m_canUpgrade)) { response << QStringLiteral("HTTP/1.1 400 Bad Request"); QStringList versions; - Q_FOREACH (QWebSocketProtocol::Version version, supportedVersions) + for (QWebSocketProtocol::Version version : supportedVersions) versions << QString::number(static_cast<int>(version)); response << QStringLiteral("Sec-WebSocket-Version: ") % versions.join(QStringLiteral(", ")); |