From: Alexander Schmidt Date: Fri, 6 Feb 2015 15:27:10 +0000 (+0100) Subject: Do not save explicitly. X-Git-Url: http://git.treefish.org/~alex/usetaglib.git/commitdiff_plain/ea02326ffeb7c6cb3fc32e44cbcea5553f726c3f Do not save explicitly. --- 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;