Skip to content

Commit

Permalink
Refs #20650: Please linter
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Jun 11, 2024
1 parent 959615b commit 9a62b59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions examples/cpp/delivery_mechanisms/PubSubApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ PubSubApp::PubSubApp(
switch (config.delivery_mechanism)
{
case CLIParser::DeliveryMechanismKind::INTRA_PROCESS: // (It should never reach this section
{ // No transport needed, but at least a transport needs to be declared to avoid participant creation failure
{
// No transport needed, but at least a transport needs to be declared to avoid participant creation failure
pqos.transport().use_builtin_transports = true;
library_settings.intraprocess_delivery = IntraprocessDeliveryType::INTRAPROCESS_FULL;
break;
Expand Down Expand Up @@ -128,7 +129,7 @@ PubSubApp::PubSubApp(
break;
}
}

auto factory = DomainParticipantFactory::get_instance();
factory->set_library_settings(library_settings);
participant_ = factory->create_participant(config.domain, pqos, nullptr, StatusMask::none());
Expand Down
5 changes: 3 additions & 2 deletions examples/cpp/delivery_mechanisms/PublisherApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ PublisherApp::PublisherApp(
{
max_samples = DATAWRITER_QOS_DEFAULT.resource_limits().max_samples_per_instance;
}

// Transport default definitions
pqos.transport().use_builtin_transports = false;
LibrarySettings library_settings;
Expand All @@ -74,7 +74,8 @@ PublisherApp::PublisherApp(
switch (config.delivery_mechanism)
{
case CLIParser::DeliveryMechanismKind::INTRA_PROCESS: // (It should never reach this section
{ // No transport needed, but at least a transport needs to be declared to avoid participant creation failure
{
// No transport needed, but at least a transport needs to be declared to avoid participant creation failure
pqos.transport().use_builtin_transports = true;
library_settings.intraprocess_delivery = IntraprocessDeliveryType::INTRAPROCESS_FULL;
break;
Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/delivery_mechanisms/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ SubscriberApp::SubscriberApp(
switch (config.delivery_mechanism)
{
case CLIParser::DeliveryMechanismKind::INTRA_PROCESS: // (It should never reach this section
{ // No transport needed, but at least a transport needs to be declared to avoid participant creation failure
{
// No transport needed, but at least a transport needs to be declared to avoid participant creation failure
pqos.transport().use_builtin_transports = true;
library_settings.intraprocess_delivery = IntraprocessDeliveryType::INTRAPROCESS_FULL;
break;
Expand Down

0 comments on commit 9a62b59

Please sign in to comment.