Skip to content

Commit

Permalink
Refs #21185: Uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com>
  • Loading branch information
elianalf committed Jul 2, 2024
1 parent ea78fb7 commit 1c2ef23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
13 changes: 5 additions & 8 deletions examples/cpp/flow_control/FlowControl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ class FlowControl
eProsima_user_DllExport FlowControl(
const FlowControl& x)
{
m_message = x.m_message;
m_message = x.m_message;

m_index = x.m_index;
m_index = x.m_index;

}

Expand All @@ -104,9 +104,9 @@ class FlowControl
const FlowControl& x)
{

m_message = x.m_message;
m_message = x.m_message;

m_index = x.m_index;
m_index = x.m_index;

return *this;
}
Expand All @@ -132,7 +132,7 @@ class FlowControl
const FlowControl& x) const
{
return (m_message == x.m_message &&
m_index == x.m_index);
m_index == x.m_index);
}

/*!
Expand Down Expand Up @@ -183,7 +183,6 @@ class FlowControl
return m_message;
}


/*!
* @brief This function sets a value in member index
* @param _index New value for member index
Expand Down Expand Up @@ -212,8 +211,6 @@ class FlowControl
return m_index;
}



private:

std::array<char, 600000> m_message{0};
Expand Down
5 changes: 3 additions & 2 deletions examples/cpp/flow_control/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ SubscriberApp::SubscriberApp(
status_mask << StatusMask::data_available();
status_mask << StatusMask::subscription_matched();
// Create Participant
participant_ = DomainParticipantFactory::get_instance()->create_participant(0, PARTICIPANT_QOS_DEFAULT, this, status_mask);
participant_ = DomainParticipantFactory::get_instance()->create_participant(0, PARTICIPANT_QOS_DEFAULT, this,
status_mask);
if (participant_ == nullptr)
{
throw std::runtime_error("Participant initialization failed");
Expand Down Expand Up @@ -162,7 +163,7 @@ void SubscriberApp::on_data_writer_discovery(
fast_writer_guid = info.info.guid().entityId;
std::cout << "Fast writer id " << fast_writer_guid << std::endl;
}
else if(info.info.m_qos.m_userData.data_vec() == slow_writer_id)
else if (info.info.m_qos.m_userData.data_vec() == slow_writer_id)
{
slow_writer_guid = info.info.guid().entityId;
std::cout << "Slow writer id " << slow_writer_guid << std::endl;
Expand Down

0 comments on commit 1c2ef23

Please sign in to comment.