Skip to content

Commit

Permalink
Merge pull request OpenDDS#4470 from mitza-oci/master
Browse files Browse the repository at this point in the history
Removed second ; when a statement ends in ;;
  • Loading branch information
jrw972 authored Feb 9, 2024
2 parents c49bb54 + 6a118c1 commit 26b946f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dds/DCPS/NetworkResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ ACE_INET_Addr choose_single_coherent_address(const String& address, bool prefer_
addr.in6_.sin6_port = ACE_NTOHS(port_number);
} else {
#endif /* ACE_HAS_IPV6 */
addr.in4_.sin_port = ACE_NTOHS(port_number);;
addr.in4_.sin_port = ACE_NTOHS(port_number);
#ifdef ACE_HAS_IPV6
}
#endif /* ACE_HAS_IPV6 */
Expand Down
2 changes: 1 addition & 1 deletion dds/DCPS/RTPS/ICE/Stun.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ OpenDDS_Rtps_Export
Attribute make_priority(ACE_UINT32 priority);

OpenDDS_Rtps_Export
Attribute make_use_candidate();;
Attribute make_use_candidate();

OpenDDS_Rtps_Export
Attribute make_fingerprint();
Expand Down
2 changes: 1 addition & 1 deletion dds/DCPS/XTypes/DynamicDataXcdrReadImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ DDS::MemberDescriptor* DynamicDataXcdrReadImpl::get_union_selected_member()
}

if (has_default) {
return default_member._retn();;
return default_member._retn();
}

// The union has no selected member.
Expand Down
2 changes: 1 addition & 1 deletion dds/DCPS/transport/shmem/ShmemTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ ShmemTransport::ReadTask::stop()
}
stopped_ = true;
ACE_OS::sema_post(&semaphore_);
ThreadStatusManager::Sleeper s(TheServiceParticipant->get_thread_status_manager());;
ThreadStatusManager::Sleeper s(TheServiceParticipant->get_thread_status_manager());
wait();
}

Expand Down
18 changes: 9 additions & 9 deletions tests/unit-tests/dds/DCPS/Qos_Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,35 +213,35 @@ TEST(dds_DCPS_Qos_Helper, DurabilityQosPolicyBuilder_kind)
{
OpenDDS::DCPS::DurabilityQosPolicyBuilder uut;
uut.kind(DDS::TRANSIENT_DURABILITY_QOS);
EXPECT_EQ(uut.qos().kind, DDS::TRANSIENT_DURABILITY_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::TRANSIENT_DURABILITY_QOS);
}

TEST(dds_DCPS_Qos_Helper, DurabilityQosPolicyBuilder_volatile)
{
OpenDDS::DCPS::DurabilityQosPolicyBuilder uut;
uut._volatile();
EXPECT_EQ(uut.qos().kind, DDS::VOLATILE_DURABILITY_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::VOLATILE_DURABILITY_QOS);
}

TEST(dds_DCPS_Qos_Helper, DurabilityQosPolicyBuilder_transient_local)
{
OpenDDS::DCPS::DurabilityQosPolicyBuilder uut;
uut.transient_local();
EXPECT_EQ(uut.qos().kind, DDS::TRANSIENT_LOCAL_DURABILITY_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::TRANSIENT_LOCAL_DURABILITY_QOS);
}

TEST(dds_DCPS_Qos_Helper, DurabilityQosPolicyBuilder_transient)
{
OpenDDS::DCPS::DurabilityQosPolicyBuilder uut;
uut.transient();
EXPECT_EQ(uut.qos().kind, DDS::TRANSIENT_DURABILITY_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::TRANSIENT_DURABILITY_QOS);
}

TEST(dds_DCPS_Qos_Helper, DurabilityQosPolicyBuilder_persistent)
{
OpenDDS::DCPS::DurabilityQosPolicyBuilder uut;
uut.persistent();
EXPECT_EQ(uut.qos().kind, DDS::PERSISTENT_DURABILITY_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::PERSISTENT_DURABILITY_QOS);
}

TEST(dds_DCPS_Qos_Helper, DurabilityServiceQosPolicyBuilder_default_ctor)
Expand Down Expand Up @@ -421,14 +421,14 @@ TEST(dds_DCPS_Qos_Helper, OwnershipQosPolicyBuilder_shared)
{
OpenDDS::DCPS::OwnershipQosPolicyBuilder uut;
uut.shared();
EXPECT_EQ(uut.qos().kind, DDS::SHARED_OWNERSHIP_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::SHARED_OWNERSHIP_QOS);
}

TEST(dds_DCPS_Qos_Helper, OwnershipQosPolicyBuilder_exclusive)
{
OpenDDS::DCPS::OwnershipQosPolicyBuilder uut;
uut.exclusive();
EXPECT_EQ(uut.qos().kind, DDS::EXCLUSIVE_OWNERSHIP_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::EXCLUSIVE_OWNERSHIP_QOS);
}

TEST(dds_DCPS_Qos_Helper, OwnershipStrengthQosPolicyBuilder_default_ctor)
Expand Down Expand Up @@ -494,14 +494,14 @@ TEST(dds_DCPS_Qos_Helper, LivelinessQosPolicyBuilder_manual_by_participant)
{
OpenDDS::DCPS::LivelinessQosPolicyBuilder uut;
uut.manual_by_participant();
EXPECT_EQ(uut.qos().kind, DDS::MANUAL_BY_PARTICIPANT_LIVELINESS_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::MANUAL_BY_PARTICIPANT_LIVELINESS_QOS);
}

TEST(dds_DCPS_Qos_Helper, LivelinessQosPolicyBuilder_manual_by_topic)
{
OpenDDS::DCPS::LivelinessQosPolicyBuilder uut;
uut.manual_by_topic();
EXPECT_EQ(uut.qos().kind, DDS::MANUAL_BY_TOPIC_LIVELINESS_QOS);;
EXPECT_EQ(uut.qos().kind, DDS::MANUAL_BY_TOPIC_LIVELINESS_QOS);
}

TEST(dds_DCPS_Qos_Helper, LivelinessQosPolicyBuilder_lease_duration)
Expand Down

0 comments on commit 26b946f

Please sign in to comment.