Skip to content

Commit

Permalink
Refs #20575: Please linter
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso committed Apr 8, 2024
1 parent f3387c2 commit 112656b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/cpp/configuration/CLIParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
};
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/configuration/PublisherApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_)))
Expand Down
20 changes: 10 additions & 10 deletions examples/cpp/configuration/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 112656b

Please sign in to comment.