From 7f654409c55019e1177bd7ba77b2d5b333c2d168 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Mon, 30 Dec 2019 21:06:39 +0100 Subject: [PATCH] webengine: port foreach -> range-based for Signed-off-by: Juraj Oravec --- src/lib/webengine/webview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp index 0a736bf4b..f98482304 100644 --- a/src/lib/webengine/webview.cpp +++ b/src/lib/webengine/webview.cpp @@ -888,7 +888,8 @@ void WebView::createSelectedTextContextMenu(QMenu* menu, const WebHitTestResult Menu* swMenu = new Menu(tr("Search with..."), menu); swMenu->setCloseOnMiddleClick(true); SearchEnginesManager* searchManager = mApp->searchEnginesManager(); - foreach (const SearchEngine &en, searchManager->allEngines()) { + const auto engines = searchManager->allEngines(); + for (const SearchEngine &en : engines) { Action* act = new Action(en.icon, en.name); act->setData(QVariant::fromValue(en));