diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2018-03-11 00:22:02 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2018-03-11 00:24:42 +0100 |
commit | bbadb0fab36de841f1e9cea71cc420fe55e6faeb (patch) | |
tree | bd9f920d93d41b9b559ff9c2eec1889aa716ddea /src/library/library.cpp | |
parent | bdcd714b53291ca038bc5eb1bb626280f93e77f3 (diff) |
replace the shared track pointer with an uniqe ptr
Diffstat (limited to 'src/library/library.cpp')
-rw-r--r-- | src/library/library.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/library.cpp b/src/library/library.cpp index 91707e051a..745a609beb 100644 --- a/src/library/library.cpp +++ b/src/library/library.cpp @@ -422,7 +422,7 @@ void Library::slotSetTrackTableRowHeight(int rowHeight) { emit(setTrackTableRowHeight(rowHeight)); } -void Library::saveCachedTrack(TrackPointer pTrack) noexcept { +void Library::saveCachedTrack(Track* pTrack) noexcept { // It can produce dangerous signal loops if the track is still // sending signals while being saved! // See: https://bugs.launchpad.net/mixxx/+bug/1365708 @@ -435,10 +435,10 @@ void Library::saveCachedTrack(TrackPointer pTrack) noexcept { // ensure that we have exclusive (write) access on the file // and not reader or writer is accessing the same file // concurrently. - m_pTrackCollection->exportTrackMetadata(pTrack.get()); + m_pTrackCollection->exportTrackMetadata(pTrack); // The track must be saved while the cache is locked to // prevent that a new track is created from the outdated // metadata that is is the database before saving is finished. - m_pTrackCollection->saveTrack(pTrack.get()); + m_pTrackCollection->saveTrack(pTrack); } |