summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_time.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-03-09 12:53:36 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-03-09 12:53:36 +0100
commit60d97734bef3939bb7ed54170fbcf9a1b459b496 (patch)
tree08c593473d49b9d271475a8b44cc8ce1293194f2 /ACE/ace/OS_NS_time.h
parent710e551540f9d1a24c7808ae0172ddce2e39f717 (diff)
downloadATCD-60d97734bef3939bb7ed54170fbcf9a1b459b496.tar.gz
Make use of constexpr instead of const
* ACE/ace/CDR_Base.cpp: * ACE/ace/Configuration.cpp: * ACE/ace/ETCL/ETCL_l.cpp: * ACE/ace/OS_NS_time.h: * ACE/ace/OS_NS_time.inl: * ACE/ace/UTF16_Encoding_Converter.cpp: * ACE/ace/Vector_T.h:
Diffstat (limited to 'ACE/ace/OS_NS_time.h')
-rw-r--r--ACE/ace/OS_NS_time.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/OS_NS_time.h b/ACE/ace/OS_NS_time.h
index 4e204c63b7b..6b115e6bc61 100644
--- a/ACE/ace/OS_NS_time.h
+++ b/ACE/ace/OS_NS_time.h
@@ -35,9 +35,9 @@
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Type-safe, and unsigned.
-static const ACE_UINT32 ACE_U_ONE_SECOND_IN_MSECS = 1000U;
-static const ACE_UINT32 ACE_U_ONE_SECOND_IN_USECS = 1000000U;
-static const ACE_UINT32 ACE_U_ONE_SECOND_IN_NSECS = 1000000000U;
+static constexpr ACE_UINT32 ACE_U_ONE_SECOND_IN_MSECS = 1000U;
+static constexpr ACE_UINT32 ACE_U_ONE_SECOND_IN_USECS = 1000000U;
+static constexpr ACE_UINT32 ACE_U_ONE_SECOND_IN_NSECS = 1000000000U;
/// Helper for the ACE_OS::timezone() function
/**