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

#164 Use default initial values for class member variables #168

Merged
merged 3 commits into from
Oct 20, 2023

Conversation

fktn-k
Copy link
Owner

@fktn-k fktn-k commented Oct 20, 2023

Before this PR, some classes do not have default initial values for their own member variables.
For such a class, each constructor should have its member initializer list, and those list tend to be the same in every constructor.
Sometimes those those classes have some uninitialized values at their constructors, which would potentially and unexpectedly cause undefined behaviours.

To avoid duplicating boilerplates as well as missing initialization, I would like to introduce default initial values for member variables where they are missing.

Related items: #164.

@fktn-k fktn-k added the improvement refactoring or optimization without public API changes label Oct 20, 2023
@fktn-k fktn-k added this to the Release v0.1.3 milestone Oct 20, 2023
@fktn-k fktn-k self-assigned this Oct 20, 2023
@fktn-k fktn-k merged commit e0e9b28 into develop Oct 20, 2023
104 checks passed
@fktn-k fktn-k deleted the feature/164_use_default_member_init_vals branch October 20, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement refactoring or optimization without public API changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant