summaryrefslogtreecommitdiff
path: root/src/urlbar/listitem.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/urlbar/listitem.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/urlbar/listitem.cpp')
-rw-r--r--src/urlbar/listitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp
index c6f4210e..17a4585d 100644
--- a/src/urlbar/listitem.cpp
+++ b/src/urlbar/listitem.cpp
@@ -475,7 +475,7 @@ EngineBar::EngineBar(KService::Ptr selectedEngine, QWidget *parent)
if (SearchEngine::defaultEngine().isNull())
return;
m_engineGroup->addAction(newEngineAction(SearchEngine::defaultEngine(), selectedEngine));
- foreach(KService::Ptr engine, SearchEngine::favorites())
+ foreach(const KService::Ptr &engine, SearchEngine::favorites())
{
if (engine->desktopEntryName() != SearchEngine::defaultEngine()->desktopEntryName())
{