Help: Fix clang warning about unneeded copy

Change-Id: I0526245773be1dcc71f7ed28e9c5113f20b66df6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Christian Kandeler
2020-06-26 10:21:31 +02:00
parent 64896a9436
commit 832eb5c5a3

View File

@@ -206,7 +206,7 @@ void IndexWindow::open(const QModelIndex &index, bool newPage)
#else #else
QMultiMap<QString, QUrl> links; QMultiMap<QString, QUrl> links;
const QList<QHelpLink> docs = LocalHelpManager::helpEngine().documentsForKeyword(keyword); const QList<QHelpLink> docs = LocalHelpManager::helpEngine().documentsForKeyword(keyword);
for (const auto doc : docs) for (const auto &doc : docs)
links.insert(doc.title, doc.url); links.insert(doc.title, doc.url);
#endif #endif