-
Notifications
You must be signed in to change notification settings - Fork 175
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
[core] writer refactoring based on unique ptr #1573
Conversation
…uctor + unique_ptr
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.
clang-tidy made some suggestions
@@ -33,56 +33,35 @@ namespace eCAL | |||
{ | |||
const std::string CDataWriterSHM::m_memfile_base_name = "ecal_"; | |||
|
|||
CDataWriterSHM::~CDataWriterSHM() | |||
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& topic_id_) |
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.
warning: parameter 'host_name_' is unused [misc-unused-parameters]
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& topic_id_) | |
CDataWriterSHM::CDataWriterSHM(const std::string& /*host_name_*/, const std::string& topic_name_, const std::string& topic_id_) |
@@ -33,56 +33,35 @@ | |||
{ | |||
const std::string CDataWriterSHM::m_memfile_base_name = "ecal_"; | |||
|
|||
CDataWriterSHM::~CDataWriterSHM() | |||
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& topic_id_) |
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.
warning: parameter 'topic_id_' is unused [misc-unused-parameters]
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& topic_id_) | |
CDataWriterSHM::CDataWriterSHM(const std::string& host_name_, const std::string& topic_name_, const std::string& /*topic_id_*/) |
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 like Create
/ Destroy
removal 😄
Description
All eCAL writer Create/Destroy functions removed. Constructor and destructor should be used to construct writers for udp, shm, tcp.
Related issues
Fixes #1475