mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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);
|
||||
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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user