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/opensearch | |
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/opensearch')
-rw-r--r-- | src/opensearch/opensearchmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opensearch/opensearchmanager.cpp b/src/opensearch/opensearchmanager.cpp index 2b5d24ae..591a4acb 100644 --- a/src/opensearch/opensearchmanager.cpp +++ b/src/opensearch/opensearchmanager.cpp @@ -65,7 +65,7 @@ OpenSearchManager::OpenSearchManager(QObject *parent) OpenSearchManager::~OpenSearchManager() { - qDeleteAll(m_engineCache.values()); + qDeleteAll(m_engineCache); m_engineCache.clear(); m_engines.clear(); } |