diff options
author | Albert Astals Cid <aacid@kde.org> | 2011-05-29 10:44:56 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2011-05-29 10:44:56 +0100 |
commit | 68ce178bc5e1028bb2440e0739ff91dc6bc79cfc (patch) | |
tree | 1ee4111d1b77207ce9873ddaed193d8a798b432f /src/urlbar | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-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')
-rw-r--r-- | src/urlbar/listitem.cpp | 2 |
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()) { |