From 7984327c40a09cdd79f03a52649484e5f0c5704c Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Mon, 31 Dec 2018 17:41:11 +0100 Subject: Network examples: cleanup foreach usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace deprecated foreach macro with range-based for loop Change-Id: I0d1f2cfd557d02ccc48b41b3fea137baa2962fc1 Reviewed-by: André Hartmann Reviewed-by: Timur Pocheptsov --- examples/network/http/httpwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/network/http') diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp index ec90b8f7fe..39ffb3cc87 100644 --- a/examples/network/http/httpwindow.cpp +++ b/examples/network/http/httpwindow.cpp @@ -319,7 +319,7 @@ void HttpWindow::slotAuthenticationRequired(QNetworkReply *, QAuthenticator *aut void HttpWindow::sslErrors(QNetworkReply *, const QList &errors) { QString errorString; - foreach (const QSslError &error, errors) { + for (const QSslError &error : errors) { if (!errorString.isEmpty()) errorString += '\n'; errorString += error.errorString(); -- cgit v1.2.3