From 5dabc9454746fe2c437715b2266f93d15c3a8d0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Fri, 4 Dec 2009 11:48:38 +0000 Subject: [PATCH] fix init order git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32330 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/Systemcall.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index d4a3b514fb..4d40c58536 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -138,8 +138,8 @@ int Systemcall::startscript(Starttype how, string const & what) SystemcallPrivate::SystemcallPrivate(const std::string& of) : - proc_(new QProcess), outindex_(0), process_events(false), - errindex_(0), outfile(of), showout_(false), showerr_(false) + proc_(new QProcess), outindex_(0), errindex_(0), + outfile(of), showout_(false), showerr_(false), process_events(false) { if (!outfile.empty()) { // Check whether we have to simply throw away the output. @@ -167,6 +167,7 @@ void SystemcallPrivate::startProcess(const QString& cmd) } } + void SystemcallPrivate::processEvents() { if(process_events) { @@ -175,6 +176,7 @@ void SystemcallPrivate::processEvents() } } + void SystemcallPrivate::waitAndProcessEvents() { Sleep::millisec(100); @@ -217,7 +219,6 @@ bool SystemcallPrivate::waitWhile(State waitwhile, bool proc_events, int timeout } - SystemcallPrivate::~SystemcallPrivate() { flush(); @@ -254,6 +255,7 @@ void SystemcallPrivate::flush() } } + void SystemcallPrivate::stdOut() { if (proc_ && showout_) { @@ -364,6 +366,7 @@ QString SystemcallPrivate::exitStatusMessage() const return message; } + int SystemcallPrivate::exitCode() { if (!proc_) @@ -386,6 +389,7 @@ void SystemcallPrivate::killProcess() killProcess(proc_); } + void SystemcallPrivate::killProcess(QProcess * p) { if (p) { -- 2.39.5