forked from qt-creator/qt-creator
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:
@@ -92,7 +92,7 @@ static FormatTask format(FormatTask task)
|
||||
process.setTimeoutS(5);
|
||||
process.setCommand({executable, options});
|
||||
process.runBlocking();
|
||||
if (process.result() != QtcProcess::Finished) {
|
||||
if (process.result() != QtcProcess::FinishedWithSuccess) {
|
||||
task.error = QString(QT_TRANSLATE_NOOP("TextEditor", "Failed to format: %1."))
|
||||
.arg(process.exitMessage());
|
||||
return task;
|
||||
|
||||
Reference in New Issue
Block a user