From dcf0331eb1769bcba26b64c05a38a3ce532768cc Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Thu, 19 Sep 2019 15:23:34 +0200 Subject: [PATCH] Use newer function signatures --- taglib/mpeg/mpegfile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/taglib/mpeg/mpegfile.cpp b/taglib/mpeg/mpegfile.cpp index a906033f..a2ce02a7 100644 --- a/taglib/mpeg/mpegfile.cpp +++ b/taglib/mpeg/mpegfile.cpp @@ -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) -- 2.40.0