From c9e8f30c9ac6f2defd63e4c60040f9f719b80e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Sun, 28 Aug 2016 12:52:41 +0200 Subject: Remove CoverInfoRelative::kNullImageHash --- src/library/coverart.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/library/coverart.cpp') diff --git a/src/library/coverart.cpp b/src/library/coverart.cpp index 351ba5f595..621b424d87 100644 --- a/src/library/coverart.cpp +++ b/src/library/coverart.cpp @@ -44,6 +44,13 @@ QString coverInfoToString(const CoverInfo& info) { } } // anonymous namespace +CoverInfoRelative::CoverInfoRelative() + : source(UNKNOWN), + type(NONE), + hash(0) { + // The default hash value should match the calculated hash for a null image + DEBUG_ASSERT(CoverArtUtils::calculateHash(QImage()) == hash); +} bool operator==(const CoverInfoRelative& a, const CoverInfoRelative& b) { return a.source == b.source && @@ -82,6 +89,3 @@ QDebug operator<<(QDebug dbg, const CoverArt& art) { toDebugString(art.image.size()), QString::number(art.resizedToWidth)); } - -const quint16 CoverInfoRelative::kNullImageHash = CoverArtUtils::calculateHash(QImage()); - -- cgit v1.2.3