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>
This commit is contained in:
Jarek Kobus
2021-08-27 09:59:07 +02:00
parent 390b214198
commit cd3f82f247
12 changed files with 16 additions and 16 deletions

View File

@@ -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;