forked from qt-creator/qt-creator
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:
@@ -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 ";
|
||||
|
||||
Reference in New Issue
Block a user