1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Don't use C++11 for with Qt containers

This commit is contained in:
David Rosca 2016-02-27 22:13:33 +01:00
parent c2b5b479a4
commit a37fadd8dc
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2015 David Rosca <nowrep@gmail.com>
* Copyright (C) 2015-2016 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -151,7 +151,9 @@ QString Scripts::sendPostData(const QUrl &url, const QByteArray &data)
QString values;
QUrlQuery query(data);
for (const QPair<QString, QString> &pair : query.queryItems(QUrl::FullyDecoded)) {
const auto &queryItems = query.queryItems(QUrl::FullyDecoded);
for (int i = 0; i < queryItems.size(); ++i) {
const auto &pair = queryItems[i];
QString value = pair.first;
QString key = pair.second;
value.replace(QL1S("'"), QL1S("\\'"));

View File

@ -57,7 +57,7 @@ void GM_Plugin::init(InitState state, const QString &settingsPath)
// Make sure userscripts works also with already created WebPages
if (state == LateInitState) {
for (BrowserWindow *window : mApp->windows()) {
foreach (BrowserWindow *window, mApp->windows()) {
m_manager->mainWindowCreated(window);
}
}