From da2e65cc1e78c51eab347ff8896bd549ef15aff0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 May 2019 19:12:50 +0900 Subject: Adjusted to latest TQVariant::TQVariant(bool) function. Signed-off-by: Michele Calgaro --- tdefile-plugins/mp3/tdefile_mp3.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tdefile-plugins/mp3/tdefile_mp3.cpp b/tdefile-plugins/mp3/tdefile_mp3.cpp index 2d0e0022..041e0313 100644 --- a/tdefile-plugins/mp3/tdefile_mp3.cpp +++ b/tdefile-plugins/mp3/tdefile_mp3.cpp @@ -191,8 +191,6 @@ bool KMp3Plugin::readInfo(KFileMetaInfo &info, uint what) break; } - static const int dummy = 0; // TQVariant's bool constructor requires a dummy int value. - // CRC and Emphasis aren't yet implemented in TagLib (not that I think anyone cares) appendItem(techgroup, "Version", version); @@ -201,8 +199,8 @@ bool KMp3Plugin::readInfo(KFileMetaInfo &info, uint what) appendItem(techgroup, "Bitrate", file.audioProperties()->bitrate()); appendItem(techgroup, "Sample Rate", file.audioProperties()->sampleRate()); appendItem(techgroup, "Channels", file.audioProperties()->channels()); - appendItem(techgroup, "Copyright", TQVariant(file.audioProperties()->isCopyrighted(), dummy)); - appendItem(techgroup, "Original", TQVariant(file.audioProperties()->isOriginal(), dummy)); + appendItem(techgroup, "Copyright", TQVariant(file.audioProperties()->isCopyrighted())); + appendItem(techgroup, "Original", TQVariant(file.audioProperties()->isOriginal())); appendItem(techgroup, "Length", file.audioProperties()->length()); // appendItem(techgroup, "Emphasis", file.audioProperties()->empahsis()); } -- cgit v1.2.3