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

Comparing XmlTools2/trunk/utilxmltools.cpp (file contents):
Revision 920 by s10k, Sun Feb 2 18:50:10 2014 UTC vs.
Revision 923 by s10k, Mon Feb 3 15:42:14 2014 UTC

# Line 42 | Line 42 | QStringList getAllPatchFilesByWildcard(c
42  
43   }
44  
45 < void backupFile(const QString &file){
45 > void backupFile(const QString &file, bool verboseEnabled){
46      if(!QFile::exists(file+".bak")){
47          if(!Util::backupFile(file)){
48              std::cerr << "Couldn't backup file '" << file.toLatin1().constData() << "'. Aborting." << std::endl;
# Line 50 | Line 50 | void backupFile(const QString &file){
50          }
51      }
52      else{
53 <        std::cout << "Backup file '" << file.toLatin1().constData() << "'' already exists. Skipping..." << std::endl;
53 >        if(verboseEnabled){
54 >            std::cout << "Backup file '" << file.toLatin1().constData() << "'' already exists. Skipping..." << std::endl;
55 >        }
56      }
57   }
58  

Diff Legend

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