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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user