From 112656b271144e344bf64b6f0304ed6e2ff7865e Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Mon, 8 Apr 2024 16:32:19 +0200 Subject: [PATCH] Refs #20575: Please linter Signed-off-by: JesusPoderoso --- examples/cpp/configuration/CLIParser.hpp | 2 +- examples/cpp/configuration/PublisherApp.cpp | 1 + examples/cpp/configuration/SubscriberApp.cpp | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/examples/cpp/configuration/CLIParser.hpp b/examples/cpp/configuration/CLIParser.hpp index d82e9843e8d..56acefb7f66 100644 --- a/examples/cpp/configuration/CLIParser.hpp +++ b/examples/cpp/configuration/CLIParser.hpp @@ -68,7 +68,7 @@ class CLIParser uint32_t lifespan = fastrtps::Duration_t::INFINITE_SECONDS; LivelinessQosPolicyKind liveliness = LivelinessQosPolicyKind::AUTOMATIC_LIVELINESS_QOS; uint32_t liveliness_lease = fastrtps::Duration_t::INFINITE_SECONDS; - uint32_t liveliness_assert = fastrtps::Duration_t::INFINITE_SECONDS-1; + uint32_t liveliness_assert = fastrtps::Duration_t::INFINITE_SECONDS - 1; OwnershipQosPolicyKind ownership = OwnershipQosPolicyKind::SHARED_OWNERSHIP_QOS; std::string partitions = ""; }; diff --git a/examples/cpp/configuration/PublisherApp.cpp b/examples/cpp/configuration/PublisherApp.cpp index 908b9a11eb9..af69be0a11a 100644 --- a/examples/cpp/configuration/PublisherApp.cpp +++ b/examples/cpp/configuration/PublisherApp.cpp @@ -225,6 +225,7 @@ void PublisherApp::on_unacknowledged_sample_removed( { std::cout << "Unacknowledged sample was removed!" << std::endl; } + void PublisherApp::run() { while (!is_stopped() && ((samples_ == 0) || (configuration_.index() < samples_))) diff --git a/examples/cpp/configuration/SubscriberApp.cpp b/examples/cpp/configuration/SubscriberApp.cpp index 78caa1f7a4a..cecaedfe854 100644 --- a/examples/cpp/configuration/SubscriberApp.cpp +++ b/examples/cpp/configuration/SubscriberApp.cpp @@ -197,36 +197,36 @@ void SubscriberApp::on_data_available( } void SubscriberApp::on_requested_deadline_missed( - DataReader* /*reader*/, - const RequestedDeadlineMissedStatus& /*status*/) + DataReader* /*reader*/, + const RequestedDeadlineMissedStatus& /*status*/) { std::cout << "Requested deadline missed!" << std::endl; } void SubscriberApp::on_liveliness_changed( - DataReader* /*reader*/, - const LivelinessChangedStatus& /*status*/) + DataReader* /*reader*/, + const LivelinessChangedStatus& /*status*/) { std::cout << "Liveliness changed!" << std::endl; } void SubscriberApp::on_sample_rejected( - DataReader* /*reader*/, - const SampleRejectedStatus& /*status*/) + DataReader* /*reader*/, + const SampleRejectedStatus& /*status*/) { std::cout << "Sample rejected!" << std::endl; } void SubscriberApp::on_requested_incompatible_qos( - DataReader* /*reader*/, - const RequestedIncompatibleQosStatus& /*status*/) + DataReader* /*reader*/, + const RequestedIncompatibleQosStatus& /*status*/) { std::cout << "Incompatible QoS detected!" << std::endl; } void SubscriberApp::on_sample_lost( - DataReader* /*reader*/, - const SampleLostStatus& /*status*/) + DataReader* /*reader*/, + const SampleLostStatus& /*status*/) { std::cout << "Sample lost!" << std::endl; }