mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Simplify code
This commit is contained in:
parent
7032b03748
commit
90772a01e7
@ -607,13 +607,11 @@ QString SystemcallPrivate::exitStatusMessage() const
|
|||||||
|
|
||||||
int SystemcallPrivate::exitCode()
|
int SystemcallPrivate::exitCode()
|
||||||
{
|
{
|
||||||
if (!process_)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
// From Qt's documentation, in regards to QProcess::exitCode(),
|
// From Qt's documentation, in regards to QProcess::exitCode(),
|
||||||
// "This value is not valid unless exitStatus() returns NormalExit"
|
// "This value is not valid unless exitStatus() returns NormalExit"
|
||||||
if (process_->exitStatus() != QProcess::NormalExit)
|
if (!process_ || process_->exitStatus() != QProcess::NormalExit)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return process_->exitCode();
|
return process_->exitCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user