From 517a96cd8685c827ca073113dbc266bc2c8e07f8 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sat, 5 Jan 2013 20:18:43 +0100 Subject: [PATCH] QxtWeb: fix compilation with QT_STRICT_ITERATORS --- .../qxt/qxtweb-standalone/qxtweb/qxtwebcgiservice.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/thirdparty/qxt/qxtweb-standalone/qxtweb/qxtwebcgiservice.cpp b/thirdparty/qxt/qxtweb-standalone/qxtweb/qxtwebcgiservice.cpp index ead51ce09..409118c27 100644 --- a/thirdparty/qxt/qxtweb-standalone/qxtweb/qxtwebcgiservice.cpp +++ b/thirdparty/qxt/qxtweb-standalone/qxtweb/qxtwebcgiservice.cpp @@ -218,8 +218,8 @@ void QxtWebCgiService::pageRequestedEvent(QxtWebRequestEvent* event) env["QUERY_STRING"] = event->url.encodedQuery(); // Populate HTTP header environment variables - QMultiHash::const_iterator iter = event->headers.begin(); - while (iter != event->headers.end()) + QMultiHash::const_iterator iter = event->headers.constBegin(); + while (iter != event->headers.constEnd()) { QString key = "HTTP_" + iter.key().toUpper().replace('-', '_'); if (key != "HTTP_CONTENT_TYPE" && key != "HTTP_CONTENT_LENGTH") @@ -228,9 +228,9 @@ void QxtWebCgiService::pageRequestedEvent(QxtWebRequestEvent* event) } // Populate HTTP_COOKIE parameter - iter = event->cookies.begin(); + iter = event->cookies.constBegin(); QString cookies; - while (iter != event->cookies.end()) + while (iter != event->cookies.constEnd()) { if (!cookies.isEmpty()) cookies += "; ";