Skip to content

Commit

Permalink
Merge pull request OpenDDS#4367 from jwillemsen/jwi-qosxmlconstants
Browse files Browse the repository at this point in the history
Use DDS defined constants instead of our own for infinite
  • Loading branch information
jrw972 authored Nov 27, 2023
2 parents 873bc2c + 1d76f5a commit e22eac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dds/DCPS/QOS_XML_Handler/QOS_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ QosCommon::get_duration(::DDS::Duration_t& duration, const ACE_TCHAR * sec, cons
if (sec != 0) {
if (ACE_OS::strcmp(sec, ACE_TEXT("DURATION_INFINITY")) == 0 ||
ACE_OS::strcmp(sec, ACE_TEXT("DURATION_INFINITE_SEC")) == 0) {
duration.sec = 0x7fffffff;
duration.sec = ::DDS::DURATION_INFINITE_SEC;
} else {
duration.sec = ACE_OS::atoi(sec);
}
Expand All @@ -67,7 +67,7 @@ QosCommon::get_duration(::DDS::Duration_t& duration, const ACE_TCHAR * sec, cons
if (nsec != 0) {
if (ACE_OS::strcmp(nsec, ACE_TEXT("DURATION_INFINITY")) == 0 ||
ACE_OS::strcmp(nsec, ACE_TEXT("DURATION_INFINITE_NSEC")) == 0) {
duration.nanosec = 0x7fffffff;
duration.nanosec = ::DDS::DURATION_INFINITE_NSEC;
} else {
duration.nanosec = ACE_OS::atoi(nsec);
}
Expand Down

0 comments on commit e22eac1

Please sign in to comment.