-
Notifications
You must be signed in to change notification settings - Fork 181
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] remove multiple structs from Registration namespace. (IDs for pubsub / services). #1946
[core] remove multiple structs from Registration namespace. (IDs for pubsub / services). #1946
Conversation
…pubsub / services).
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
@@ -95,7 +95,7 @@ namespace eCAL | |||
Logging::Log(Logging::log_level_debug1, "v5::CServiceClientImpl: Creating service client with name: " + service_name_); | |||
|
|||
// Define the event callback to pass to CServiceClient | |||
v6::ClientEventCallbackT event_callback = [this](const Registration::SServiceId& service_id_, const v6::SClientEventCallbackData& data_) | |||
v6::ClientEventCallbackT event_callback = [this](const SServiceId& service_id_, const v6::SClientEventCallbackData& data_) |
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: variable 'event_callback' of type 'v6::ClientEventCallbackT' (aka 'function<void (const SServiceId &, const SClientEventCallbackData &)>') can be declared 'const' [misc-const-correctness]
v6::ClientEventCallbackT event_callback = [this](const SServiceId& service_id_, const v6::SClientEventCallbackData& data_) | |
v6::ClientEventCallbackT const event_callback = [this](const SServiceId& service_id_, const v6::SClientEventCallbackData& data_) |
@@ -57,7 +57,7 @@ namespace eCAL | |||
} | |||
|
|||
// Define the event callback to pass to CServiceClient | |||
v6::ServerEventCallbackT event_callback = [this](const Registration::SServiceId& service_id_, const v6::SServerEventCallbackData& data_) | |||
v6::ServerEventCallbackT event_callback = [this](const SServiceId& service_id_, const v6::SServerEventCallbackData& data_) |
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: variable 'event_callback' of type 'v6::ServerEventCallbackT' (aka 'function<void (const SServiceId &, const struct SServerEventCallbackData &)>') can be declared 'const' [misc-const-correctness]
v6::ServerEventCallbackT event_callback = [this](const SServiceId& service_id_, const v6::SServerEventCallbackData& data_) | |
v6::ServerEventCallbackT const event_callback = [this](const SServiceId& service_id_, const v6::SServerEventCallbackData& data_) |
@@ -61,7 +61,7 @@ TEST(core_cpp_pubsub, TimeoutAcknowledgment) | |||
// create publisher | |||
eCAL::CPublisher pub("topic", {}, pub_config); | |||
auto sub1 = std::make_shared< eCAL::CSubscriber>("topic"); | |||
auto sleeper_variable_time = [](const eCAL::Registration::STopicId& topic_id_, const eCAL::SDataTypeInformation& /*data_type_info_*/, const eCAL::SReceiveCallbackData& data_) | |||
auto sleeper_variable_time = [](const eCAL::STopicId& topic_id_, const eCAL::SDataTypeInformation& /*data_type_info_*/, const eCAL::SReceiveCallbackData& data_) |
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]
auto sleeper_variable_time = [](const eCAL::STopicId& topic_id_, const eCAL::SDataTypeInformation& /*data_type_info_*/, const eCAL::SReceiveCallbackData& data_) | |
auto sleeper_variable_time = [](const eCAL::STopicId& /*topic_id_*/, const eCAL::SDataTypeInformation& /*data_type_info_*/, const eCAL::SReceiveCallbackData& data_) |
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 hope I haven't overlooked anything. :-D
A few structs (STopicId, SEntityId, SServiceId, ) are moved from
eCAL::Registration
namespace to onlyeCAL
namespace.