X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FSystemcall.cpp;h=ca804096603eb81b7f35732fe6bac5e6ac8820ab;hb=12554c93d81f75f87c34040fd7737048d3518d6d;hp=5cfb8297837694792e1485e0a780f2b82aad4ffb;hpb=1eb41a88f2a7b6d71c9996d7efda128e03504147;p=lyx.git diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index 5cfb829783..ca80409660 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -240,12 +240,12 @@ string const parsecmd(string const & incmd, string & infile, string & outfile, int Systemcall::startscript(Starttype how, string const & what, string const & path, bool process_events) { - lyxerr << "\nRunning: " << what << endl; + LYXERR(Debug::INFO,"Running: " << what); string infile; string outfile; string errfile; - QString cmd = QString::fromLocal8Bit( + QString const cmd = QString::fromLocal8Bit( parsecmd(what, infile, outfile, errfile).c_str()); SystemcallPrivate d(infile, outfile, errfile); @@ -361,7 +361,7 @@ void SystemcallPrivate::startProcess(QString const & cmd, string const & path) void SystemcallPrivate::processEvents() { - if(process_events_) { + if (process_events_) { QCoreApplication::processEvents(/*QEventLoop::ExcludeUserInputEvents*/); } } @@ -430,7 +430,7 @@ bool SystemcallPrivate::waitWhile(State waitwhile, bool process_events, int time return state != Error; } - // process events while waiting whith timeout + // process events while waiting with timeout QTime timer; timer.start(); while (state == waitwhile && state != Error && !timedout) {