Skip to content

Commit

Permalink
More linters
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany authored and Mario-DL committed Oct 29, 2024
1 parent ed7f9d6 commit e92f7ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions rmw_fastrtps_dynamic_cpp/src/TypeSupport_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ template<typename MembersType>
size_t TypeSupport<MembersType>::calculateMaxSerializedSize(
const MembersType * members, size_t current_alignment)
{
bool is_key_unbounded{false}; //unused
bool is_key_unbounded{false}; // unused
return calculateMaxSerializedSize(members, current_alignment, false, is_key_unbounded);
}

Expand Down Expand Up @@ -1117,7 +1117,6 @@ bool TypeSupport<MembersType>::get_key_hash_from_ros_message(
void * ros_message, eprosima::fastrtps::rtps::InstanceHandle_t * ihandle, bool force_md5,
const void * impl) const
{

assert(ros_message);
assert(members_);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <cassert>
#include <string>
#include <vector>

#include "fastdds/dds/topic/TopicDataType.hpp"

Expand Down
5 changes: 2 additions & 3 deletions rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,13 @@ bool TypeSupport::getKey(

case FASTRTPS_SERIALIZED_DATA_TYPE_CDR_BUFFER:
{
// TODO
// We would need a get_key_hash_from_payload method
// TODO(MiguelCompany): In order to support keys in rmw_publish_serialized_message,
// we would need a get_key_hash_from_payload method
break;
}

case FASTRTPS_SERIALIZED_DATA_TYPE_DYNAMIC_MESSAGE:
{

auto m_type = std::make_shared<eprosima::fastrtps::types::DynamicPubSubType>();

// Retrieves the key (ihandle) from the dynamic data stored in data->data
Expand Down

0 comments on commit e92f7ed

Please sign in to comment.