Fixed compiler warnings, use default/override#2391
Conversation
* ACE/protocols/ace/HTBP/HTBP_Addr.cpp:
* ACE/protocols/ace/HTBP/HTBP_Addr.h:
WalkthroughThe changes remove the explicit copy constructor implementation from the source file and replace the user-declared copy constructor in the header with a defaulted one. Additional defaulted special member functions are added, and override specifiers are applied to the destructor and two methods to clarify inheritance behavior. A parameter name typo is corrected. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (20)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
ACE/protocols/ace/HTBP/HTBP_Addr.cpp(0 hunks)ACE/protocols/ace/HTBP/HTBP_Addr.h(3 hunks)
💤 Files with no reviewable changes (1)
- ACE/protocols/ace/HTBP/HTBP_Addr.cpp
⏰ Context from checks skipped due to timeout of 90000ms (21)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: macos-14-C++
- GitHub Check: VS2022WChar
- GitHub Check: ubuntu-24.04 g++
- GitHub Check: ubuntu-24.04 g++-10 CodeQL
- GitHub Check: VS2022WChar
- GitHub Check: ubuntu-24.04 g++-10 CORBA/e micro
- GitHub Check: ubuntu-24.04 g++-10 ACE for TAO
- GitHub Check: VS2022Release32
- GitHub Check: ubuntu-24.04 g++-10 wchar
- GitHub Check: ubuntu-24.04 g++-14
- GitHub Check: ubuntu-22.04 clang++-13
- GitHub Check: ubuntu-24.04 clang++-14
- GitHub Check: MINGW64-gcc
- GitHub Check: ubuntu-22.04 g++-9
- GitHub Check: ubuntu-22.04 g++-10
- GitHub Check: ubuntu-24.04 g++-12
- GitHub Check: ubuntu-24.04 g++-11
- GitHub Check: ubuntu-22.04 g++-12
- GitHub Check: windows-2022 vs2022
- GitHub Check: alpine-3.18
🔇 Additional comments (3)
ACE/protocols/ace/HTBP/HTBP_Addr.h (3)
46-49: LGTM: Explicit defaulting of special member functions.Following the Rule of Five by explicitly defaulting the copy/move constructors and assignment operators is excellent practice. This addresses compiler warnings while making the intent clear and ensuring proper inheritance behavior.
64-64: LGTM: Proper use of override specifier on destructor.Adding the
overridespecifier to the destructor correctly indicates that this overrides a virtual destructor from the base class, improving code clarity and helping catch potential inheritance issues.
74-74: LGTM: Proper use of override specifier.Adding the
overridespecifier correctly indicates this method overrides a virtual function from the base class.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary by CodeRabbit
Refactor
Style