Skip to content

Commit

Permalink
Refs 10791. Linters.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed May 10, 2021
1 parent 8e5442f commit af7505a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cpp/rtps/messages/MessageReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1324,8 +1324,8 @@ void MessageReceiver::notify_network_statistics(
using namespace eprosima::fastdds::statistics;
using namespace eprosima::fastdds::statistics::rtps;

if ( (c_VendorId_eProsima != source_vendor_id_) ||
(LOCATOR_KIND_SHM == source_locator.kind) )
if ((c_VendorId_eProsima != source_vendor_id_) ||
(LOCATOR_KIND_SHM == source_locator.kind))
{
return;
}
Expand All @@ -1343,8 +1343,8 @@ void MessageReceiver::notify_network_statistics(
if (FASTDDS_STATISTICS_NETWORK_SUBMESSAGE == header.submessageId)
{
// Check submessage validity
if ( (statistics_submessage_data_length != header.submessageLength) ||
( (msg->pos + header.submessageLength) > msg->length) )
if ((statistics_submessage_data_length != header.submessageLength) ||
((msg->pos + header.submessageLength) > msg->length))
{
break;
}
Expand Down
2 changes: 2 additions & 0 deletions src/cpp/statistics/rtps/messages/RTPSStatisticsMessages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ struct StatisticsSubmessageData
}
bytes = new_bytes;
}

};

TimeStamp ts{};
Expand Down Expand Up @@ -138,6 +139,7 @@ inline uint32_t get_statistics_message_pos(

return statistics_pos;
}

#endif // FASTDDS_STATISTICS

inline void set_statistics_submessage_from_transport(
Expand Down

0 comments on commit af7505a

Please sign in to comment.