summaryrefslogtreecommitdiffstats
path: root/src/library/coverart.cpp
diff options
context:
space:
mode:
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());
-