mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Don't use C++11 for with Qt containers
This commit is contained in:
parent
c2b5b479a4
commit
a37fadd8dc
@ -1,6 +1,6 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
* QupZilla - WebKit based browser
|
* 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
|
* 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
|
* 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;
|
QString values;
|
||||||
QUrlQuery query(data);
|
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 value = pair.first;
|
||||||
QString key = pair.second;
|
QString key = pair.second;
|
||||||
value.replace(QL1S("'"), QL1S("\\'"));
|
value.replace(QL1S("'"), QL1S("\\'"));
|
||||||
|
@ -57,7 +57,7 @@ void GM_Plugin::init(InitState state, const QString &settingsPath)
|
|||||||
|
|
||||||
// Make sure userscripts works also with already created WebPages
|
// Make sure userscripts works also with already created WebPages
|
||||||
if (state == LateInitState) {
|
if (state == LateInitState) {
|
||||||
for (BrowserWindow *window : mApp->windows()) {
|
foreach (BrowserWindow *window, mApp->windows()) {
|
||||||
m_manager->mainWindowCreated(window);
|
m_manager->mainWindowCreated(window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user