ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/XmlTools2/trunk/xmlpatch.cpp
(Generate patch)

Comparing XmlTools2/trunk/xmlpatch.cpp (file contents):
Revision 926 by s10k, Wed Feb 5 18:31:05 2014 UTC vs.
Revision 935 by s10k, Thu Feb 6 13:05:39 2014 UTC

# Line 8 | Line 8 | XmlPatch::XmlPatch(QString patchFilesWil
8      this->verboseEnabled=!noVerbose;
9  
10      if(forceTargetFilesWildcard!=""){
11 <        std::cout << "User forced patch in the target file(s): " << forceTargetFilesWildcard.toLatin1().constData() << std::endl;
11 >        std::cout << "User forced patch in the target file(s): " << forceTargetFilesWildcard.toUtf8().constData() << std::endl;
12      }
13  
14      if(this->patchFilesToProcess.isEmpty()){
# Line 57 | Line 57 | void XmlPatch::insertNodesOperation(cons
57          UtilXmlTools::displayErrorMessage("@ADD_INSIDE_NODES","No XML files were found for the wildcard: "+filesWildcard);
58      }
59  
60 <    result=newNode.load(xmlString.toLatin1().constData()); // load xml to insert
60 >    result=newNode.load(xmlString.toUtf8().constData()); // load xml to insert
61  
62      if(result.status!=pugi::status_ok){
63          UtilXmlTools::displayErrorMessage("@ADD_INSIDE_NODES", "The xml node to insert is invalid.\n" + Util::toQString(result.description()));

Diff Legend

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