ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/xmlprocessor.cpp
(Generate patch)

Comparing Vago/trunk/Vago/xmlprocessor.cpp (file contents):
Revision 1035 by s10k, Thu Mar 24 22:28:41 2016 UTC vs.
Revision 1047 by s10k, Fri Sep 16 22:51:26 2016 UTC

# Line 9 | Line 9 | XmlProcessor::XmlProcessor(QString AppDi
9  
10   void XmlProcessor::run()
11   {
12 <    QProcess *myProcess = new QProcess();
12 >    QProcess myProcess;
13      QString result = QString();
14      QString errorMessage = "";
15      int numErrors=0;
16  
17 <    myProcess->setWorkingDirectory(this->AppDir);
17 >    myProcess.setWorkingDirectory(this->AppDir);
18  
19      for(int i=0; i<this->commands->size(); i++){
20  
21 <        myProcess->start(Util::getXmlToolsExeName() +" "+this->commands->at(i));
22 <        myProcess->waitForFinished(-1);
23 <        result=myProcess->readAllStandardError();
21 >        myProcess.start(UtilVago::getXmlToolsExeAbsolutePath() +" "+this->commands->at(i));
22 >        myProcess.waitForFinished(-1);
23 >        result=myProcess.readAllStandardError();
24  
25          if(!result.isEmpty()){
26              //catch exception
# Line 31 | Line 31 | void XmlProcessor::run()
31  
32      }
33  
34    delete myProcess; //delete object and make pointer invalid
34      this->commands->clear(); //clean list
35  
36      //let's cut it a bit, complete error is in log file.

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)