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 8, 2024
1 parent a7d7de2 commit b1c4374
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 @@ -101,6 +101,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 @@ -210,7 +210,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 b1c4374

Please sign in to comment.