From 84171887bbed9b2863c1597b737be4de73159a5e Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Tue, 9 Jul 2024 21:57:54 +0200 Subject: [PATCH] QmlJsEditor: Remove warning about unused variable Change-Id: If67c3330130a90b84f593cb8a83999f47f3849e0 Reviewed-by: Christian Stenger --- src/plugins/qmljseditor/qmljseditordocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmljseditordocument.cpp b/src/plugins/qmljseditor/qmljseditordocument.cpp index 8b425c8d1c0..53dfc5ecf31 100644 --- a/src/plugins/qmljseditor/qmljseditordocument.cpp +++ b/src/plugins/qmljseditor/qmljseditordocument.cpp @@ -765,7 +765,7 @@ void QmlJSEditorDocumentPrivate::settingsChanged() m_qmllsStatus.qmllsPath = newQmlls; if (newQmlls.isEmpty()) { qCDebug(qmllsLog) << "disabling qmlls for" << q->filePath(); - if (Client *client = LanguageClientManager::clientForDocument(q)) { + if (LanguageClientManager::clientForDocument(q) != nullptr) { qCDebug(qmllsLog) << "deactivating " << q->filePath() << "in qmlls" << newQmlls; LanguageClientManager::openDocumentWithClient(q, nullptr); } else