diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library/dao/trackdao.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/dao/trackdao.cpp b/src/library/dao/trackdao.cpp index af7203647c..2a29ff380b 100644 --- a/src/library/dao/trackdao.cpp +++ b/src/library/dao/trackdao.cpp @@ -457,7 +457,7 @@ void bindTrackLibraryValues(QSqlQuery* pTrackLibraryQuery, const Track& track) { pTrackLibraryQuery->bindValue(":timesplayed", playCounter.getTimesPlayed()); pTrackLibraryQuery->bindValue(":played", playCounter.isPlayed() ? 1 : 0); - const CoverInfoRelative coverInfo(track.getCoverInfo()); + const CoverInfoRelative& coverInfo = track.getCoverInfo(); pTrackLibraryQuery->bindValue(":coverart_source", coverInfo.source); pTrackLibraryQuery->bindValue(":coverart_type", coverInfo.type); pTrackLibraryQuery->bindValue(":coverart_location", coverInfo.coverLocation); @@ -485,7 +485,7 @@ void bindTrackLibraryValues(QSqlQuery* pTrackLibraryQuery, const Track& track) { QString keysSubVersion; QString keyText; mixxx::track::io::key::ChromaticKey globalKey = mixxx::track::io::key::INVALID; - const Keys keys(track.getKeys()); + const Keys& keys = track.getKeys(); if (keys.isValid()) { keysBlob = keys.toByteArray(); keysVersion = keys.getVersion(); |