Skip to content

Commit

Permalink
Use move instead of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed May 15, 2021
1 parent 36d0cf6 commit 2cb6f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sources/soundsourceproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2cb6f7b

Please sign in to comment.