1
0
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:
Paul Licameli
2017-06-23 17:33:45 -04:00
parent c355b82dc6
commit 35ce499ce1
33 changed files with 117 additions and 172 deletions

View File

@@ -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,