diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2021-05-15 16:15:22 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2021-05-15 16:15:22 +0200 |
commit | 2cb6f7b770a5cbbaa73b5b5516993dc2e4636b9b (patch) | |
tree | e7a7156aab06a182a6f14a07975b1b48b3f8820f /src/sources | |
parent | 36d0cf6f47eda4966215c8acca0e86776c7ad5f3 (diff) |
Use move instead of copy
Diffstat (limited to 'src/sources')
-rw-r--r-- | src/sources/soundsourceproxy.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sources/soundsourceproxy.cpp b/src/sources/soundsourceproxy.cpp index bf44cea95d..f94c4f1f44 100644 --- a/src/sources/soundsourceproxy.cpp +++ b/src/sources/soundsourceproxy.cpp @@ -683,7 +683,9 @@ bool SoundSourceProxy::updateTrackFromSource( return false; } - m_pTrack->importMetadata(trackMetadata, metadataImported.second); + m_pTrack->replaceMetadataFromSource( + std::move(trackMetadata), + metadataImported.second); bool pendingBeatsImport = m_pTrack->getBeatsImportStatus() == Track::ImportStatus::Pending; bool pendingCueImport = m_pTrack->getCueImportStatus() == Track::ImportStatus::Pending; |