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/urlbar/listitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/urlbar') 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()) { -- cgit v1.2.1