From 68ce178bc5e1028bb2440e0739ff91dc6bc79cfc Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 29 May 2011 10:44:56 +0100 Subject: Code janitoring qDeleteAll knows how to delete values of the map in a better way than calling values add const & to foreach "iterators" --- src/webview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index 7c02ee06..ca7f1b70 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -226,7 +226,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) { KActionMenu *searchMenu = new KActionMenu(KIcon("edit-find"), i18n("Search with"), this); - foreach(KService::Ptr engine, SearchEngine::favorites()) + foreach(const KService::Ptr &engine, SearchEngine::favorites()) { a = new KAction(engine->name(), this); a->setIcon(rApp->iconManager()->iconForUrl(SearchEngine::buildQuery(engine, ""))); -- cgit v1.2.1