diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-06-26 10:21:31 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-06-26 08:54:41 +0000 |
commit | 832eb5c5a3992856008472789f91b4b52a66ef08 (patch) | |
tree | 957d950cd21ee8dd85dde1e3157864128e3c082a /src/shared | |
parent | 64896a94368aa88dafe098f7a69e10e8a3a66317 (diff) |
Help: Fix clang warning about unneeded copy
Change-Id: I0526245773be1dcc71f7ed28e9c5113f20b66df6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/help/indexwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/help/indexwindow.cpp b/src/shared/help/indexwindow.cpp index af58ff8739..f30158cd61 100644 --- a/src/shared/help/indexwindow.cpp +++ b/src/shared/help/indexwindow.cpp @@ -206,7 +206,7 @@ void IndexWindow::open(const QModelIndex &index, bool newPage) #else QMultiMap<QString, QUrl> links; const QList<QHelpLink> docs = LocalHelpManager::helpEngine().documentsForKeyword(keyword); - for (const auto doc : docs) + for (const auto &doc : docs) links.insert(doc.title, doc.url); #endif |