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

webengine: port foreach -> range-based for

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-12-30 21:06:39 +01:00
parent 9b6f187282
commit 7f654409c5
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -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));