From 3d25863ccbf57d8c279ee2adcc951780bd3224cb Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 12 Jul 2023 16:22:17 +0200 Subject: [PATCH] CollectionWatcher: Make PerformEBUR128Analysis const --- src/collection/collectionwatcher.cpp | 2 +- src/collection/collectionwatcher.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collection/collectionwatcher.cpp b/src/collection/collectionwatcher.cpp index 07273f21d..1c6976ecf 100644 --- a/src/collection/collectionwatcher.cpp +++ b/src/collection/collectionwatcher.cpp @@ -941,7 +941,7 @@ void CollectionWatcher::AddChangedSong(const QString &file, const Song &matching } -void CollectionWatcher::PerformEBUR128Analysis(Song &song) { +void CollectionWatcher::PerformEBUR128Analysis(Song &song) const { if (!song_ebur128_loudness_analysis_) return; diff --git a/src/collection/collectionwatcher.h b/src/collection/collectionwatcher.h index 86f3eef13..482074fc3 100644 --- a/src/collection/collectionwatcher.h +++ b/src/collection/collectionwatcher.h @@ -199,7 +199,7 @@ class CollectionWatcher : public QObject { static void AddChangedSong(const QString &file, const Song &matching_song, const Song &new_song, ScanTransaction *t); - void PerformEBUR128Analysis(Song &song); + void PerformEBUR128Analysis(Song &song) const; quint64 FilesCountForPath(ScanTransaction *t, const QString &path); quint64 FilesCountForSubdirs(ScanTransaction *t, const CollectionSubdirectoryList &subdirs, QMap &subdir_files_count);