diff options
author | Christian Kandeler <christian.kandeler@nokia.com> | 2010-08-20 13:19:10 (GMT) |
---|---|---|
committer | Christian Kandeler <christian.kandeler@nokia.com> | 2010-08-20 13:22:27 (GMT) |
commit | 27988b0981d0ced87280b8748f9037bbbea088b5 (patch) | |
tree | 4450e1b8575b685fd7ce7a69200c63a3ac5f1e26 /tools/assistant/lib | |
parent | 89794be9a9c56f9a09e4f3b0e66e46dd7947aeac (diff) | |
download | Qt-27988b0981d0ced87280b8748f9037bbbea088b5.zip Qt-27988b0981d0ced87280b8748f9037bbbea088b5.tar.gz Qt-27988b0981d0ced87280b8748f9037bbbea088b5.tar.bz2 |
Assistant: Clean-up: Use const references in foreach loops.
Diffstat (limited to 'tools/assistant/lib')
-rw-r--r-- | tools/assistant/lib/qhelpsearchindexreader_clucene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/assistant/lib/qhelpsearchindexreader_clucene.cpp b/tools/assistant/lib/qhelpsearchindexreader_clucene.cpp index c2274c4..75cc2b9 100644 --- a/tools/assistant/lib/qhelpsearchindexreader_clucene.cpp +++ b/tools/assistant/lib/qhelpsearchindexreader_clucene.cpp @@ -173,7 +173,7 @@ void QHelpSearchIndexReaderClucene::run() QCLuceneDocument document; const QStringList namespaceList = engine.registeredDocumentations(); - foreach (QSharedPointer<QCLuceneHits> hits, cluceneHitsList) { + foreach (const QSharedPointer<QCLuceneHits> &hits, cluceneHitsList) { for (qint32 i = 0; i < hits->length(); i++) { document = hits->document(i); const QString path = document.get(PathField); @@ -415,7 +415,7 @@ bool QHelpSearchIndexReaderClucene::addAttributesQuery( void QHelpSearchIndexReaderClucene::boostSearchHits(const QHelpEngineCore &engine, QList<QHelpSearchEngine::SearchHit> &hitList, const QList<QHelpSearchQuery> &queryList) { - foreach (const QHelpSearchQuery query, queryList) { + foreach (const QHelpSearchQuery &query, queryList) { if (query.fieldName != QHelpSearchQuery::DEFAULT) continue; |