1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-24 01:21:13 +01:00

Some uses of Destroy_ptr let us remove some naked news

This commit is contained in:
Paul Licameli
2016-08-09 22:46:59 -04:00
parent aaeaadff07
commit fec4069d9d
5 changed files with 36 additions and 37 deletions

View File

@@ -97,7 +97,8 @@ class ToolManager final : public wxEvtHandler
wxPoint mLastPos;
wxRect mBarPos;
wxFrame *mIndicator;
using FramePtr = Destroy_ptr<wxFrame>;
FramePtr mIndicator;
std::unique_ptr<wxRegion> mLeft, mDown;
wxRegion *mCurrent;