From 1c8395fca93a1af1388dacf63bf13bb422292568 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 12 May 2021 10:11:40 +0200 Subject: [PATCH] Fix build with Qt 6 Amends 1e263274720 Change-Id: Ibbd1a71e46f6b4ea6feb81983a2bc9a49661cc3d Reviewed-by: Jarek Kobus Reviewed-by: Qt CI Bot --- src/plugins/qmljseditor/qmljssemantichighlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmljssemantichighlighter.cpp b/src/plugins/qmljseditor/qmljssemantichighlighter.cpp index 9db93925a34..2e05c7aba0b 100644 --- a/src/plugins/qmljseditor/qmljssemantichighlighter.cpp +++ b/src/plugins/qmljseditor/qmljssemantichighlighter.cpp @@ -568,7 +568,7 @@ void SemanticHighlighter::rerun(const QmlJSTools::SemanticInfo &semanticInfo) auto future = Utils::runAsync(QThread::LowestPriority, &SemanticHighlighter::run, this, semanticInfo); m_watcher.setFuture(future); - m_futureSynchronizer.addFuture(future); + m_futureSynchronizer.addFuture(QFuture(future)); } void SemanticHighlighter::cancel()