LanguageClient: Suppress a compiler warning

warning indentation; statement is not part of the previous 'for' [-Wmisleading-indentation]
                    if (__builtin_expect(!!(clients.removeAll(client) == 0), true)) {} else { ::Utils::writeAssertLocation( "\"" "clients.removeAll(client) == 0""\" in " "/data/dev/creator-out/src/plugins/languageclient/languageclientmanager.cpp" ":" "114"); } do {} while (0

Change-Id: I14297567627801d3a5436abf2df8fec23bff85dd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2024-03-07 17:47:22 +01:00
parent 68e178c041
commit 96d44d375b

View File

@@ -110,8 +110,9 @@ void LanguageClient::LanguageClientManager::addClient(Client *client)
managerInstance, [client]() {
QTC_ASSERT(!managerInstance->m_clients.contains(client),
managerInstance->m_clients.removeAll(client));
for (QList<Client *> &clients : managerInstance->m_clientsForSetting)
for (QList<Client *> &clients : managerInstance->m_clientsForSetting) {
QTC_CHECK(clients.removeAll(client) == 0);
}
});
ProjectExplorer::Project *project = client->project();