summaryrefslogtreecommitdiffstats
path: root/src/core/download_manager_delegate_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/download_manager_delegate_qt.cpp')
-rw-r--r--src/core/download_manager_delegate_qt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/download_manager_delegate_qt.cpp b/src/core/download_manager_delegate_qt.cpp
index 5a5e5b79d..b8ef9c56d 100644
--- a/src/core/download_manager_delegate_qt.cpp
+++ b/src/core/download_manager_delegate_qt.cpp
@@ -184,7 +184,7 @@ bool DownloadManagerDelegateQt::DetermineDownloadTarget(content::DownloadItem* i
item->GetLastReason()
};
- Q_FOREACH (BrowserContextAdapterClient *client, clients) {
+ for (BrowserContextAdapterClient *client : qAsConst(clients)) {
client->downloadRequested(info);
if (info.accepted)
break;
@@ -279,7 +279,7 @@ void DownloadManagerDelegateQt::ChooseSavePath(content::WebContents *web_content
BrowserContextAdapterClient::NoReason
};
- Q_FOREACH (BrowserContextAdapterClient *client, clients) {
+ for (BrowserContextAdapterClient *client : qAsConst(clients)) {
client->downloadRequested(info);
if (info.accepted)
break;
@@ -339,7 +339,7 @@ void DownloadManagerDelegateQt::OnDownloadUpdated(content::DownloadItem *downloa
download->GetLastReason()
};
- Q_FOREACH (BrowserContextAdapterClient *client, clients) {
+ for (BrowserContextAdapterClient *client : qAsConst(clients)) {
client->downloadUpdated(info);
}
}