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

fix(engine-prime): build-failure #13397

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

Swiftb0y
Copy link
Member

Explicitly instantiate default destructor in out-of-line (in .cpp) because destructing a std::unique_ptr<Waveform> needs Waveform to be complete at the point of destruction.

@Swiftb0y
Copy link
Member Author

Interestingly, this only surfaced because of f031f51

@Swiftb0y Swiftb0y marked this pull request as ready for review June 24, 2024 09:45
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

Please add also the override keyword.
It is a good practice to make the destructor virtual when the class had virtual functions. A virtual function can not be inlined btw.

@Swiftb0y
Copy link
Member Author

right, but ~EnginePrimeExportJob doesn't need to be virtual as the class is not designed to be inherited from technically, but I'll add it anyways.

@Swiftb0y Swiftb0y force-pushed the fix/engine-prime-build-failure branch from 5f4cf9a to 04ac735 Compare June 24, 2024 12:27
@daschuer
Copy link
Member

The virtual keyword is redundant.

Explicitly instantiate default destructor in out-of-line (in .cpp)
because destructing a `std::unique_ptr<Waveform>` needs `Waveform`
to be complete at the point of destruction.
@Swiftb0y Swiftb0y force-pushed the fix/engine-prime-build-failure branch from 04ac735 to 69bda20 Compare June 25, 2024 13:10
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

Thank you. LGTM

@daschuer daschuer merged commit 133030e into mixxxdj:2.4 Jun 25, 2024
14 checks passed
@Swiftb0y Swiftb0y deleted the fix/engine-prime-build-failure branch June 25, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants