1
0
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:
Paul Licameli
2018-11-19 13:17:28 -05:00
parent a0aa69a248
commit 41175e94cd
12 changed files with 47 additions and 49 deletions

View File

@@ -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),