mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-02 14:17:07 +01:00
TrackList constructed only by factory function, to avoid more trouble
This commit is contained in:
@@ -61,13 +61,13 @@ class TrackList;
|
||||
|
||||
struct UndoStackElem;
|
||||
struct UndoState {
|
||||
UndoState(std::unique_ptr<TrackList> &&tracks_,
|
||||
UndoState(std::shared_ptr<TrackList> &&tracks_,
|
||||
const std::shared_ptr<Tags> &tags_,
|
||||
const SelectedRegion &selectedRegion_)
|
||||
: tracks(std::move(tracks_)), tags(tags_), selectedRegion(selectedRegion_)
|
||||
{}
|
||||
|
||||
std::unique_ptr<TrackList> tracks;
|
||||
std::shared_ptr<TrackList> tracks;
|
||||
std::shared_ptr<Tags> tags;
|
||||
SelectedRegion selectedRegion; // by value
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user