]> git.treefish.org Git - usetaglib.git/commitdiff
Do not save explicitly.
authorAlexander Schmidt <alex@treefish.org>
Fri, 6 Feb 2015 15:27:10 +0000 (16:27 +0100)
committerAlexander Schmidt <alex@treefish.org>
Fri, 6 Feb 2015 15:27:10 +0000 (16:27 +0100)
usetaglib.cpp

index 43ae55c9349a41d3ee074c52ce2b7647c913d91d..18b201fb2a887d36d0568671b31c7914299dae47 100644 (file)
@@ -221,8 +221,6 @@ int main(int argc, char *argv[])
 
     if(f.isNull())
       continue;
-
-    bool FCHANGED = false;
     
     for (actionqueue::iterator actit = requestedActions.begin(); actit != requestedActions.end(); ++actit) {
       switch (actit->first) {
@@ -236,23 +234,17 @@ int main(int argc, char *argv[])
        
       case ERASE:
        action_eraseTag(f, actit->second);
-       FCHANGED = true;
        break;
        
       case REPLACE:
        action_replaceTag(f, splitToTagPair(actit->second));
-       FCHANGED = true;
        break;
 
       case INSERT:
        action_insertTag(f, splitToTagPair(actit->second));
-       FCHANGED = true;
        break;
       }
     }
-
-    if (FCHANGED)
-      f.file()->save();
   }
   
   return 0;