1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

Remove a friend declaration from Project, privatize a pointer member...

... and make implementation of that pointer a smart one.
This commit is contained in:
Paul Licameli
2016-04-11 14:40:13 -04:00
parent 76b66e05dd
commit f9da767cbd
5 changed files with 24 additions and 26 deletions

View File

@@ -612,8 +612,10 @@ public:
Meter *mPlaybackMeter{};
Meter *mCaptureMeter{};
std::unique_ptr<ToolManager> mToolManager{};
public:
ToolManager *mToolManager{};
ToolManager *GetToolManager() { return mToolManager.get(); }
bool mShowSplashScreen;
wxString mHelpPref;
wxString mSoloPref;
@@ -675,9 +677,6 @@ public:
// Last effect applied to this project
PluginID mLastEffect{};
// The screenshot class needs to access internals
friend class ScreenshotCommand;
wxRect mNormalizedWindowState;
//flag for cancellation of timer record.