1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 00:23:32 +02:00

Track duplication methods return unique_ptr, although some callers...

... simply release() them for now.
This commit is contained in:
Paul Licameli
2016-03-02 14:37:47 -05:00
parent 5162ab5c5b
commit f42a953752
14 changed files with 39 additions and 33 deletions

View File

@@ -132,7 +132,9 @@ class TimeTrack final : public Track {
* @param orig the TimeTrack to copy from
*/
void Init(const TimeTrack &orig);
Track *Duplicate() const override;
using Holder = std::unique_ptr<TimeTrack>;
Track::Holder Duplicate() const override;
friend class TrackFactory;