1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-01 03:54:47 +02:00

Pass non-const AudacityProject to HitTest::Preview...

... because that will be needed for elimination of some GetActiveProject()
calls.  Because some overrides need to find the focused track, but that may
mutate the project by setting the focused track when it wasn't yet defined.
This commit is contained in:
Paul Licameli
2020-01-04 09:40:33 -05:00
parent f1ee1689c6
commit f64bc5a829
38 changed files with 42 additions and 42 deletions

View File

@@ -529,7 +529,7 @@ private:
(const TrackPanelMouseEvent &event, AudacityProject *pProject) override;
HitTestPreview Preview
(const TrackPanelMouseState &state, const AudacityProject *pProject)
(const TrackPanelMouseState &state, AudacityProject *pProject)
override;
Result Release
@@ -619,7 +619,7 @@ protected:
}
HitTestPreview Preview
(const TrackPanelMouseState &state, const AudacityProject *pProject)
(const TrackPanelMouseState &state, AudacityProject *pProject)
override
{
(void)pProject;// Compiler food
@@ -771,7 +771,7 @@ private:
}
HitTestPreview Preview
(const TrackPanelMouseState &state, const AudacityProject *pProject)
(const TrackPanelMouseState &state, AudacityProject *pProject)
override;
Result Release
@@ -1494,7 +1494,7 @@ void AdornedRulerPanel::HandleQPDrag(wxMouseEvent &/*event*/, wxCoord mousePosX)
}
auto AdornedRulerPanel::ScrubbingHandle::Preview
(const TrackPanelMouseState &state, const AudacityProject *pProject)
(const TrackPanelMouseState &state, AudacityProject *pProject)
-> HitTestPreview
{
(void)state;// Compiler food
@@ -1510,7 +1510,7 @@ auto AdornedRulerPanel::ScrubbingHandle::Preview
}
auto AdornedRulerPanel::QPHandle::Preview
(const TrackPanelMouseState &state, const AudacityProject *pProject)
(const TrackPanelMouseState &state, AudacityProject *pProject)
-> HitTestPreview
{
TranslatableString tooltip;