mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Initialize correctly SystemcallPrivate in constructor
It seems that Error is the best possibility when nothing has been done yet. Found by Coverity
This commit is contained in:
parent
7800c05788
commit
664fca5566
@ -295,16 +295,10 @@ int Systemcall::startscript(Starttype how, string const & what,
|
||||
}
|
||||
|
||||
|
||||
SystemcallPrivate::SystemcallPrivate(std::string const & sf,
|
||||
std::string const & of,
|
||||
std::string const & ef) :
|
||||
process_(new QProcess),
|
||||
out_index_(0),
|
||||
err_index_(0),
|
||||
in_file_(sf),
|
||||
out_file_(of),
|
||||
err_file_(ef),
|
||||
process_events_(false)
|
||||
SystemcallPrivate::SystemcallPrivate(std::string const & sf, std::string const & of,
|
||||
std::string const & ef)
|
||||
: state(Error), process_(new QProcess), out_index_(0), err_index_(0),
|
||||
in_file_(sf), out_file_(of), err_file_(ef), process_events_(false)
|
||||
{
|
||||
if (!in_file_.empty())
|
||||
process_->setStandardInputFile(QString::fromLocal8Bit(in_file_.c_str()));
|
||||
|
Loading…
Reference in New Issue
Block a user