summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-26 19:12:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-26 19:12:50 +0900
commitda2e65cc1e78c51eab347ff8896bd549ef15aff0 (patch)
tree2953028aabe0ab0d4a51a8cfb380d9462cb76904
parent9b8b7c129917f2813e5f412fe08b6a153ca05981 (diff)
downloadtdemultimedia-da2e65cc.tar.gz
tdemultimedia-da2e65cc.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--tdefile-plugins/mp3/tdefile_mp3.cpp6
1 files 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());
}