diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2021-08-27 09:59:07 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2021-08-30 12:06:12 +0000 |
commit | cd3f82f247f587b16e911483b8d2674874565381 (patch) | |
tree | 822d61b7e84b1282285bfb7483ebf8a84ea4c92c /src/plugins/qmljseditor | |
parent | 390b214198cc9dc6fd7c2878d2167d067edbded2 (diff) |
Pass QFutureInterface by reference
No need for a copy.
Change-Id: I0308da77199942ef49e36fb04e81713cb9d9a901
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmljssemantichighlighter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmljseditor/qmljssemantichighlighter.cpp b/src/plugins/qmljseditor/qmljssemantichighlighter.cpp index 1236cc1b9f3..1d3e2c13ddf 100644 --- a/src/plugins/qmljseditor/qmljssemantichighlighter.cpp +++ b/src/plugins/qmljseditor/qmljssemantichighlighter.cpp @@ -174,7 +174,7 @@ protected: class CollectionTask : protected Visitor { public: - CollectionTask(QFutureInterface<SemanticHighlighter::Use> futureInterface, + CollectionTask(QFutureInterface<SemanticHighlighter::Use> &futureInterface, const QmlJSTools::SemanticInfo &semanticInfo) : m_futureInterface(futureInterface) , m_semanticInfo(semanticInfo) @@ -532,7 +532,7 @@ private: m_uses.reserve(chunkSize); } - QFutureInterface<SemanticHighlighter::Use> m_futureInterface; + QFutureInterface<SemanticHighlighter::Use> &m_futureInterface; const QmlJSTools::SemanticInfo &m_semanticInfo; ScopeChain m_scopeChain; ScopeBuilder m_scopeBuilder; |