From 9a62b59cbf22e341b4bb08d3662ec2626c5698fc Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Mon, 10 Jun 2024 09:18:49 +0200 Subject: [PATCH] Refs #20650: Please linter Signed-off-by: JesusPoderoso --- examples/cpp/delivery_mechanisms/PubSubApp.cpp | 5 +++-- examples/cpp/delivery_mechanisms/PublisherApp.cpp | 5 +++-- examples/cpp/delivery_mechanisms/SubscriberApp.cpp | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/cpp/delivery_mechanisms/PubSubApp.cpp b/examples/cpp/delivery_mechanisms/PubSubApp.cpp index b03da51b3c5..66019640c9d 100644 --- a/examples/cpp/delivery_mechanisms/PubSubApp.cpp +++ b/examples/cpp/delivery_mechanisms/PubSubApp.cpp @@ -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; @@ -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()); diff --git a/examples/cpp/delivery_mechanisms/PublisherApp.cpp b/examples/cpp/delivery_mechanisms/PublisherApp.cpp index c8115c3df7a..5c0e2832019 100644 --- a/examples/cpp/delivery_mechanisms/PublisherApp.cpp +++ b/examples/cpp/delivery_mechanisms/PublisherApp.cpp @@ -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; @@ -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; diff --git a/examples/cpp/delivery_mechanisms/SubscriberApp.cpp b/examples/cpp/delivery_mechanisms/SubscriberApp.cpp index 61ace6cf533..fcec560a996 100644 --- a/examples/cpp/delivery_mechanisms/SubscriberApp.cpp +++ b/examples/cpp/delivery_mechanisms/SubscriberApp.cpp @@ -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;