mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-25 07:23:44 +02:00
Track cut and copy functions return a unique_ptr argument...
... Because they are factory functions.
This commit is contained in:
@@ -153,12 +153,12 @@ class AUDACITY_DLL_API LabelTrack final : public Track
|
||||
bool Save(wxTextFile * out, bool overwrite) override;
|
||||
#endif
|
||||
|
||||
bool Cut (double t0, double t1, Track ** dest) override;
|
||||
Track::Holder Cut (double t0, double t1) override;
|
||||
// JKC Do not add the const modifier to Copy(), Clear()
|
||||
// or Paste() because then it
|
||||
// is no longer recognised as a virtual function matching the
|
||||
// one in Track.
|
||||
bool Copy (double t0, double t1, Track ** dest) const override;
|
||||
Track::Holder Copy (double t0, double t1) const override;
|
||||
bool Clear(double t0, double t1) override;
|
||||
bool Paste(double t, const Track * src) override;
|
||||
bool Repeat(double t0, double t1, int n);
|
||||
@@ -224,7 +224,7 @@ class AUDACITY_DLL_API LabelTrack final : public Track
|
||||
bool PasteOver(double t, const Track *src);
|
||||
|
||||
// PRL: These functions were not used because they were not overrides! Was that right?
|
||||
//bool SplitCut(double b, double e, Track **dest) /* not override */;
|
||||
//Track::Holder SplitCut(double b, double e) /* not override */;
|
||||
//bool SplitDelete(double b, double e) /* not override */;
|
||||
|
||||
void ShiftLabelsOnInsert(double length, double pt);
|
||||
|
||||
Reference in New Issue
Block a user