CppCodeModelSettings: Get rid of call to waitForStarted()

This is unneeded when followed by waitForFinished().

Change-Id: Ifc63feb2abbbc38bf4b119489ceb07320c383499
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Jarek Kobus
2022-06-29 16:51:15 +02:00
parent 953a3abe92
commit 35e5520331

View File

@@ -287,7 +287,7 @@ static QVersionNumber getClangdVersion(const FilePath &clangdFilePath)
Utils::QtcProcess clangdProc;
clangdProc.setCommand({clangdFilePath, {"--version"}});
clangdProc.start();
if (!clangdProc.waitForStarted() || !clangdProc.waitForFinished())
if (!clangdProc.waitForFinished())
return{};
const QString output = clangdProc.allOutput();
static const QString versionPrefix = "clangd version ";