]> granicus.if.org Git - taglib/commitdiff
Use newer function signatures
authorScott Wheeler <scott@directededge.com>
Thu, 19 Sep 2019 13:23:34 +0000 (15:23 +0200)
committerScott Wheeler <scott@directededge.com>
Thu, 19 Sep 2019 13:23:34 +0000 (15:23 +0200)
taglib/mpeg/mpegfile.cpp

index a906033f25ae77cd7dc09b3654979565e7fb2c55..a2ce02a7c1890844e296fa9f7b742947d8ce8b4e 100644 (file)
@@ -205,12 +205,14 @@ bool MPEG::File::save(int tags)
 
 bool MPEG::File::save(int tags, bool stripOthers)
 {
-  return save(tags, stripOthers, ID3v2::v4);
+  return save(tags, stripOthers ? StripOthers : StripNone, ID3v2::v4);
 }
 
 bool MPEG::File::save(int tags, bool stripOthers, int id3v2Version)
 {
-  return save(tags, stripOthers, id3v2Version, true);
+  return save(tags,
+              stripOthers ? StripOthers : StripNone,
+              id3v2Version == 3 ? ID3v2::v3 : ID3v2::v4);
 }
 
 bool MPEG::File::save(int tags, bool stripOthers, int id3v2Version, bool duplicateTags)