Skip to content

Commit

Permalink
Refs #20543: Address missed suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Mar 12, 2024
1 parent c8fa642 commit 3b91e52
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 12 additions & 0 deletions include/fastdds/dds/domain/DomainParticipantFactory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ class DomainParticipantFactory
*/
RTPS_DllAPI DomainParticipant* create_participant_with_default_profile();


/**
* Create a Participant with default domain id and qos.
*
* @return DomainParticipant pointer. (nullptr if not created.)
* @param listener DomainParticipantListener Pointer
* @param mask StatusMask Reference
*/
RTPS_DllAPI DomainParticipant* create_participant_with_default_profile(
DomainParticipantListener* listener,
const StatusMask& mask);

/**
* Create a Participant.
*
Expand Down
10 changes: 9 additions & 1 deletion src/cpp/fastdds/domain/DomainParticipantFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,15 @@ DomainParticipant* DomainParticipantFactory::create_participant(
DomainParticipant* DomainParticipantFactory::create_participant_with_default_profile()
{
load_profiles();
return create_participant(default_domain_id_, default_participant_qos_, nullptr, StatusMask::all());
return create_participant(default_domain_id_, default_participant_qos_, nullptr, StatusMask::none());
}

DomainParticipant* DomainParticipantFactory::create_participant_with_default_profile(
DomainParticipantListener* listener,
const StatusMask& mask)
{
load_profiles();
return create_participant(default_domain_id_, default_participant_qos_, listener, mask);
}

DomainParticipant* DomainParticipantFactory::create_participant_with_profile(
Expand Down

0 comments on commit 3b91e52

Please sign in to comment.