diff options
author | ck <qt-info@nokia.com> | 2010-02-01 16:41:13 (GMT) |
---|---|---|
committer | ck <qt-info@nokia.com> | 2010-02-01 16:41:53 (GMT) |
commit | ff8e8af2c16362ab0bbf7ea14bcdd83b711ebd46 (patch) | |
tree | 59e4ac0f82fa0be3ce8bf86942056e5e968beed5 /tools/assistant/lib/qhelpsearchresultwidget.cpp | |
parent | 296b2f47b652c0f200b19bf556649b56efa6f26f (diff) | |
download | Qt-ff8e8af2c16362ab0bbf7ea14bcdd83b711ebd46.zip Qt-ff8e8af2c16362ab0bbf7ea14bcdd83b711ebd46.tar.gz Qt-ff8e8af2c16362ab0bbf7ea14bcdd83b711ebd46.tar.bz2 |
Assistant: Use const references in foreach loops.
Reviewed-by: kh1
Diffstat (limited to 'tools/assistant/lib/qhelpsearchresultwidget.cpp')
-rw-r--r-- | tools/assistant/lib/qhelpsearchresultwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/assistant/lib/qhelpsearchresultwidget.cpp b/tools/assistant/lib/qhelpsearchresultwidget.cpp index a3f5aed..ad540c6 100644 --- a/tools/assistant/lib/qhelpsearchresultwidget.cpp +++ b/tools/assistant/lib/qhelpsearchresultwidget.cpp @@ -73,7 +73,7 @@ public: void showResultPage(const QList<QHelpSearchEngine::SearchHit> hits) { - foreach (const QHelpSearchEngine::SearchHit hit, hits) + foreach (const QHelpSearchEngine::SearchHit &hit, hits) new QTreeWidgetItem(this, QStringList(hit.first) << hit.second); } @@ -118,7 +118,7 @@ public: .arg(tr("The search results may not be complete since the " "documentation is still being indexed!")); - foreach (const QHelpSearchEngine::SearchHit hit, hits) { + foreach (const QHelpSearchEngine::SearchHit &hit, hits) { htmlFile += QString(QLatin1String("<div style=\"text-align:left; font-weight:bold\"" "><a href=\"%1\">%2</a><div style=\"color:green; font-weight:normal;" " margin:5px\">%1</div></div><p></p>")) |