--- Vago/trunk/Vago/xmlprocessor.cpp 2016/09/16 22:51:26 1047 +++ s10k/Vago/xmlprocessor.cpp 2017/12/30 13:57:32 1093 @@ -1,9 +1,8 @@ #include "xmlprocessor.h" -XmlProcessor::XmlProcessor(QString AppDir, Logger *myLogger, QStringList *commands) +XmlProcessor::XmlProcessor(QString AppDir, QStringList *commands) { this->AppDir=AppDir; - this->myLogger=myLogger; this->commands=commands; } @@ -18,13 +17,13 @@ void XmlProcessor::run() for(int i=0; icommands->size(); i++){ - myProcess.start(UtilVago::getXmlToolsExeAbsolutePath() +" "+this->commands->at(i)); + myProcess.start(UtilVago::getXmlToolsExecutable() +" "+this->commands->at(i)); myProcess.waitForFinished(-1); result=myProcess.readAllStandardError(); if(!result.isEmpty()){ //catch exception - myLogger->writeString("Xml Tools Error: \n"+this->commands->at(i)+"\n"+result); + LOG_ERROR << "Xml Tools Error: \n" + this->commands->at(i) + "\n"+result; errorMessage=result; numErrors++; }