CollectionWatcher: Make PerformEBUR128Analysis const

This commit is contained in:
Jonas Kvinge 2023-07-12 16:22:17 +02:00
parent bb6daca735
commit 3d25863ccb
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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<QString, quint64> &subdir_files_count);