1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-09 13:12:17 +01:00

Simplify by removing class HitTestResult...

... Because all hit tests returned all fields blank, or else, returned a
UIHandle object whose Preview method gives the rest of the information; so
the other fields were redundant.
This commit is contained in:
Paul Licameli
2017-07-04 00:48:09 -04:00
parent c079544667
commit b3d62e2ab6
72 changed files with 189 additions and 388 deletions

View File

@@ -21,7 +21,7 @@ TrackPanelResizerCell::TrackPanelResizerCell( std::shared_ptr<Track> pTrack )
: mpTrack{ pTrack }
{}
HitTestResult TrackPanelResizerCell::HitTest
UIHandlePtr TrackPanelResizerCell::HitTest
(const TrackPanelMouseState &st, const AudacityProject *pProject)
{
auto pTrack = mpTrack.lock();
@@ -29,10 +29,7 @@ HitTestResult TrackPanelResizerCell::HitTest
auto result = std::make_shared<TrackPanelResizeHandle>(
pTrack, st.state.m_y, pProject );
result = AssignUIHandlePtr(mResizeHandle, result);
return {
result->Preview(st, pProject),
result
};
return result;
}
return {};
}