Skip to content

Commit

Permalink
Refs #21313: Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Jul 23, 2024
1 parent c487cd4 commit ab4778c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/cpp/rtps/builtin/discovery/endpoint/EDPStatic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ bool EDPStatic::initEDP(
}

// Check there is a Participant's property changing the exchange format.
for (auto& property : mp_RTPSParticipant->get_attributes().properties.properties())
auto& properties = mp_RTPSParticipant->get_attributes().properties.properties();
for (auto& property : properties)
{
if (0 == property.name().compare(exchange_format_property_name))
{
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/participant/RTPSParticipantImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3161,7 +3161,7 @@ dds::utils::TypePropagation RTPSParticipantImpl::type_propagation() const
return dds::utils::to_type_propagation(m_att.properties);
}

RTPSParticipantAttributes RTPSParticipantImpl::get_attributes() const
const RTPSParticipantAttributes& RTPSParticipantImpl::get_attributes() const
{
return m_att;
}
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/participant/RTPSParticipantImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ class RTPSParticipantImpl

public:

RTPSParticipantAttributes get_attributes() const;
const RTPSParticipantAttributes& get_attributes() const;

/**
* Create a Writer in this RTPSParticipant.
Expand Down

0 comments on commit ab4778c

Please sign in to comment.