summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2011-05-29 10:44:56 +0100
committerAlbert Astals Cid <aacid@kde.org>2011-05-29 10:44:56 +0100
commit68ce178bc5e1028bb2440e0739ff91dc6bc79cfc (patch)
tree1ee4111d1b77207ce9873ddaed193d8a798b432f /src/webview.cpp
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-68ce178bc5e1028bb2440e0739ff91dc6bc79cfc.tar.xz
Code janitoring
qDeleteAll knows how to delete values of the map in a better way than calling values add const & to foreach "iterators"
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp2
1 files changed, 1 insertions, 1 deletions
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, "")));