mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Manage TrackControls and TrackVRulerControls by shared_ptr; ...
... they are not singletons; and the back-pointers to their Tracks are weak.
This commit is contained in:
@@ -636,8 +636,8 @@ class AUDACITY_DLL_API WaveTrack final : public PlayableTrack {
|
||||
std::unique_ptr<WaveformSettings> mpWaveformSettings;
|
||||
|
||||
protected:
|
||||
TrackControls *GetControls() override;
|
||||
TrackVRulerControls *GetVRulerControls() override;
|
||||
std::shared_ptr<TrackControls> GetControls() override;
|
||||
std::shared_ptr<TrackVRulerControls> GetVRulerControls() override;
|
||||
};
|
||||
|
||||
// This is meant to be a short-lived object, during whose lifetime,
|
||||
|
||||
Reference in New Issue
Block a user