summaryrefslogtreecommitdiffstats
path: root/src/library/coverart.cpp
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2016-08-28 12:52:41 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2016-08-28 12:52:41 +0200
commitc9e8f30c9ac6f2defd63e4c60040f9f719b80e7a (patch)
treeef78ec7dcf31d6e7a5bfbbf4268a70bdd861e39b /src/library/coverart.cpp
parent799571108e1474ca23b77c519b2d115b4329d707 (diff)
Remove CoverInfoRelative::kNullImageHash
Diffstat (limited to 'src/library/coverart.cpp')
-rw-r--r--src/library/coverart.cpp10
1 files changed, 7 insertions, 3 deletions
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());
-