mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-08 04:32:00 +01:00
Separate Track::Clone (protected virtual) from Track::Duplicate
This commit is contained in:
@@ -163,7 +163,7 @@ Alg_seq &NoteTrack::GetSeq() const
|
||||
return *mSeq;
|
||||
}
|
||||
|
||||
Track::Holder NoteTrack::Duplicate() const
|
||||
Track::Holder NoteTrack::Clone() const
|
||||
{
|
||||
auto duplicate = std::make_shared<NoteTrack>(mDirManager);
|
||||
duplicate->Init(*this);
|
||||
@@ -925,7 +925,7 @@ void NoteTrack::WriteXML(XMLWriter &xmlFile) const
|
||||
if (!mSeq) {
|
||||
// replace saveme with an (unserialized) duplicate, which is
|
||||
// destroyed at end of function.
|
||||
holder = Duplicate();
|
||||
holder = Clone();
|
||||
saveme = static_cast<NoteTrack*>(holder.get());
|
||||
}
|
||||
saveme->GetSeq().write(data, true);
|
||||
|
||||
Reference in New Issue
Block a user