summaryrefslogtreecommitdiffstats
path: root/src/sources
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2021-05-15 16:15:22 +0200
committerUwe Klotz <uklotz@mixxx.org>2021-05-15 16:15:22 +0200
commit2cb6f7b770a5cbbaa73b5b5516993dc2e4636b9b (patch)
treee7a7156aab06a182a6f14a07975b1b48b3f8820f /src/sources
parent36d0cf6f47eda4966215c8acca0e86776c7ad5f3 (diff)
Use move instead of copy
Diffstat (limited to 'src/sources')
-rw-r--r--src/sources/soundsourceproxy.cpp4
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;