forked from qt-creator/qt-creator
Help: Fix clang warning about unneeded copy
Change-Id: I0526245773be1dcc71f7ed28e9c5113f20b66df6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user