From ea02326ffeb7c6cb3fc32e44cbcea5553f726c3f Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Fri, 6 Feb 2015 16:27:10 +0100 Subject: [PATCH] Do not save explicitly. --- usetaglib.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/usetaglib.cpp b/usetaglib.cpp index 43ae55c..18b201f 100644 --- a/usetaglib.cpp +++ b/usetaglib.cpp @@ -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; -- 2.39.5