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

[smart pointers] private class auto delete management #1155

Open
mathildemerle opened this issue Oct 16, 2023 · 0 comments
Open

[smart pointers] private class auto delete management #1155

mathildemerle opened this issue Oct 16, 2023 · 0 comments
Milestone

Comments

@mathildemerle
Copy link
Collaborator

mathildemerle commented Oct 16, 2023

After discussion with @Florent2305 it could be interesting to switch the creation of private class to QScopedPointer or something else, avoiding the need to do delete d; as done in some process in medInria.

It still needs deletion of variables created by new in these private classes.

Cf medAbstractParameter::~medAbstractParameter() comment, empty destructor of the class (or default) is needed.

@mathildemerle mathildemerle added this to the 4.0 milestone Oct 16, 2023
@mathildemerle mathildemerle changed the title [QScopedPointer] private class auto delete management [smart pointers] private class auto delete management Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant