1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

Separate Track::Clone (protected virtual) from Track::Duplicate

This commit is contained in:
Paul Licameli
2018-11-18 20:15:26 -05:00
parent b4c7a8ef2a
commit 79191d985d
10 changed files with 34 additions and 11 deletions

View File

@@ -115,6 +115,16 @@ void Track::Merge(const Track &orig)
mSelected = orig.mSelected;
}
Track::Holder Track::Duplicate() const
{
// invoke "virtual constructor" to copy track object proper:
auto result = Clone();
// other steps to be added here
return result;
}
Track::~Track()
{
}