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 class initializations and suppress duplicate inherited update() message #3331

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BsAtHome
Copy link
Contributor

@BsAtHome BsAtHome commented Feb 7, 2025

This PR mainly covers all missing class member initialization in the class constructor. It uses init-lists to do so and several places replaces old-style in-constructor assignment with init-list initialization.

Secondly, the PR fixes (suppresses) the duplicate inherited method message on update() as detected by cppcheck. These messages are caused by the sub-class containing the same method as the base-class. However, the sub-class implementation of update() calls the base-class update() correctly. The reason for the construct is because a virtual method is not possible for the set of classes. The scripts/cppcheck.sh script is modified to enable inline suppression of cppcheck messages.

A few instances where the copy-constructor is disabled have been modernized to use = delete syntax on the copy-constructor and copy-assignment.

Allow extra options from environment.
Modernize deleted copy constructor and copy assignment.
Mark cppcheck detected duplicate inherited update() method as fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant