From 8f43a1899b0a1b8299f8a08568f02be248f15e16 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 24 Nov 2023 09:19:28 +0100 Subject: [PATCH] Use DDS defined constants instead of our own for infinite * dds/DCPS/QOS_XML_Handler/QOS_Common.cpp: --- dds/DCPS/QOS_XML_Handler/QOS_Common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dds/DCPS/QOS_XML_Handler/QOS_Common.cpp b/dds/DCPS/QOS_XML_Handler/QOS_Common.cpp index 2d6fe71beed..3fffc04fd9b 100644 --- a/dds/DCPS/QOS_XML_Handler/QOS_Common.cpp +++ b/dds/DCPS/QOS_XML_Handler/QOS_Common.cpp @@ -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); } @@ -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); }