1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-26 14:41:14 +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

@@ -296,7 +296,7 @@ ScreenFrame::ScreenFrame(wxWindow * parent, wxWindowID id)
// Note that the audio could be playing.
// The monitoring will switch off temporarily
// because we've switched monitor mid play.
mContext.GetProject()->mToolManager->Reset();
mContext.GetProject()->GetToolManager()->Reset();
}
ScreenFrame::~ScreenFrame()
@@ -555,7 +555,7 @@ void ScreenFrame::SizeMainWindow(int w, int h)
mContext.GetProject()->Maximize(false);
mContext.GetProject()->SetSize(16, 16 + top, w, h);
mContext.GetProject()->mToolManager->Reset();
mContext.GetProject()->GetToolManager()->Reset();
}
void ScreenFrame::OnMainWindowSmall(wxCommandEvent & WXUNUSED(event))