Utils: Rename QtcProcess::Result::Finished to FinishedWithSuccess

To make clear that this is not just any finish.

Also change FinishedError to FinishedWithError, to create
symmetry.

Also adapt enum member description to reality.

Change-Id: I13e05391eb86fdb24e2ae660f14dfddb282e1104
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-05-28 13:19:38 +02:00
parent 08040e4e94
commit 0ba4338467
45 changed files with 139 additions and 134 deletions

View File

@@ -1675,7 +1675,7 @@ ClearCasePluginPrivate::runCleartool(const QString &workingDir,
command.setCodec(outputCodec);
command.runCommand(proc, {executable, arguments});
response.error = proc.result() != QtcProcess::Finished;
response.error = proc.result() != QtcProcess::FinishedWithSuccess;
if (response.error)
response.message = proc.exitMessage();
response.stdErr = proc.stdErr();
@@ -2361,7 +2361,7 @@ QString ClearCasePluginPrivate::runExtDiff(const QString &workingDir, const QStr
process.setCommand(diff);
process.setProcessUserEventWhileRunning();
process.runBlocking();
if (process.result() != QtcProcess::Finished)
if (process.result() != QtcProcess::FinishedWithSuccess)
return QString();
return process.allOutput();
}