-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: main
Are you sure you want to change the base?
Code cleanup #578
Conversation
Signed-off-by: Maksim Derbasov <[email protected]>
a98ebb4
to
9f279e8
Compare
There was a problem hiding this 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
include/gz/transport/Clock.hh
Outdated
@@ -112,7 +112,7 @@ namespace gz | |||
private: WallClock(); | |||
|
|||
/// \brief Destructor | |||
private: ~WallClock() override; | |||
public: ~WallClock() override; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
include/gz/transport/NodeShared.hh
Outdated
@@ -301,7 +301,7 @@ namespace gz | |||
protected: NodeShared(); | |||
|
|||
/// \brief Destructor. | |||
protected: virtual ~NodeShared(); | |||
public: virtual ~NodeShared(); |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
There was a problem hiding this 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]>
1ccf666
to
a91d48d
Compare
🦟 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
codecheck
passed (See contributing)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.