summaryrefslogtreecommitdiffstats
path: root/src/track
diff options
context:
space:
mode:
Diffstat (limited to 'src/track')
-rw-r--r--src/track/trackfile.h4
-rw-r--r--src/track/trackref.h8
2 files changed, 9 insertions, 3 deletions
diff --git a/src/track/trackfile.h b/src/track/trackfile.h
index 96c73f4a3a..7e037840a9 100644
--- a/src/track/trackfile.h
+++ b/src/track/trackfile.h
@@ -124,6 +124,8 @@ inline QDebug operator<<(QDebug debug, const TrackFile& trackFile) {
#endif
}
-inline uint qHash(const TrackFile& key, uint seed) {
+inline uint qHash(
+ const TrackFile& key,
+ uint seed = 0) {
return qHash(key.location(), seed);
}
diff --git a/src/track/trackref.h b/src/track/trackref.h
index 7a60e045ce..ef238dad0e 100644
--- a/src/track/trackref.h
+++ b/src/track/trackref.h
@@ -116,6 +116,10 @@ std::ostream& operator<<(std::ostream& os, const TrackRef& trackRef);
QDebug operator<<(QDebug debug, const TrackRef& trackRef);
-inline uint qHash(const TrackRef& key, uint seed) {
- return qHash(key.getLocation(), seed) ^ qHash(key.getId(), seed);
+inline uint qHash(
+ const TrackRef& key,
+ uint seed = 0) {
+ return qHash(
+ key.getLocation(), seed) ^
+ qHash(key.getId(), seed);
}