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

Code cleanup #578

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

Code cleanup #578

wants to merge 2 commits into from

Conversation

ntfshard
Copy link

🦟 Bug fix

Fixes #

Summary

This PR should fix typos and simplify/cleanup C++ code.
Also adding missing library in docker file which requested by bench tool

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@ntfshard ntfshard requested a review from caguero as a code owner February 15, 2025 10:32
Signed-off-by: Maksim Derbasov <[email protected]>
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

I'm fine with the spelling changes, but we should move the other changes to another PR

@@ -112,7 +112,7 @@ namespace gz
private: WallClock();

/// \brief Destructor
private: ~WallClock() override;
public: ~WallClock() override;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change is required ?

Copy link
Author

Choose a reason for hiding this comment

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

Her it's for consistency and to not break Liskov substitution principle

@@ -301,7 +301,7 @@ namespace gz
protected: NodeShared();

/// \brief Destructor.
protected: virtual ~NodeShared();
public: virtual ~NodeShared();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change is required ?

Copy link
Author

Choose a reason for hiding this comment

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

This change left after splitting previous PR to memory leak fix part (will be published after this PR) and cleanup. I suppose it fits well to cleanup patch due to private destructor mostly making problems (in comparing with private ctor which make sense in some specific context). For example https://godbolt.org/z/61P3q553d

Copy link
Collaborator

@caguero caguero left a comment

Choose a reason for hiding this comment

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

Can we move the logical code changes to the next PR if you don't mind?

Signed-off-by: Maksim Derbasov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

3 participants