Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrackAnalysisScheduler: Remove dependency on TrackDAO #4480

Merged
merged 1 commit into from
Oct 24, 2021
Merged

TrackAnalysisScheduler: Remove dependency on TrackDAO #4480

merged 1 commit into from
Oct 24, 2021

Conversation

uklotzde
Copy link
Contributor

Dependency injection, basic software engineering.

The term "Environment" for explicitly isolating side-effects in the outer context has been proven useful in other circumstances and projects.

@Be-ing Be-ing added this to In progress in Qt6 via automation Oct 24, 2021
}
~TrackAnalysisSchedulerEnvironmentImpl() override = default;

TrackPointer loadTrackById(TrackId trackId) const override {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

marking this final might allow the compiler to optimize the virtual function call away. AFAIK

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if that would make a difference, but it could be done in another PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, didn't think about it. This class is indeed supposed to be final.

@Be-ing Be-ing merged commit 2271ec0 into mixxxdj:main Oct 24, 2021
Qt6 automation moved this from In progress to Done Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Qt6
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants