mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
webengine: port foreach -> range-based for
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
9b6f187282
commit
7f654409c5
@ -888,7 +888,8 @@ void WebView::createSelectedTextContextMenu(QMenu* menu, const WebHitTestResult
|
|||||||
Menu* swMenu = new Menu(tr("Search with..."), menu);
|
Menu* swMenu = new Menu(tr("Search with..."), menu);
|
||||||
swMenu->setCloseOnMiddleClick(true);
|
swMenu->setCloseOnMiddleClick(true);
|
||||||
SearchEnginesManager* searchManager = mApp->searchEnginesManager();
|
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);
|
Action* act = new Action(en.icon, en.name);
|
||||||
act->setData(QVariant::fromValue(en));
|
act->setData(QVariant::fromValue(en));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user