mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 06:22:58 +02:00
Simplify by removing many std::move of shared_ptr to tracks...
... Don't need them, as we did with std::unique_ptr
This commit is contained in:
@@ -117,7 +117,7 @@ AudacityProject *DoImportMIDI(
|
||||
if (::ImportMIDI(fileName, newTrack.get())) {
|
||||
|
||||
pProject->SelectNone();
|
||||
auto pTrack = tracks->Add(std::move(newTrack));
|
||||
auto pTrack = tracks->Add( newTrack );
|
||||
pTrack->SetSelected(true);
|
||||
|
||||
pProject->PushState(wxString::Format(_("Imported MIDI from '%s'"),
|
||||
@@ -464,7 +464,7 @@ void OnImportLabels(const CommandContext &context)
|
||||
|
||||
project.SelectNone();
|
||||
newTrack->SetSelected(true);
|
||||
tracks->Add(std::move(newTrack));
|
||||
tracks->Add( newTrack );
|
||||
|
||||
project.PushState(wxString::
|
||||
Format(_("Imported labels from '%s'"), fileName),
|
||||
|
Reference in New Issue
Block a user