[style] remove usage of std::numeric_limits (#5487)

This replaces the usage of std::numeric_limits with C macro
UINT32_MAX. Removes the dependency of C++ header limits, which isn't
available on some platforms.
This commit is contained in:
Moandor
2020-09-03 08:28:32 -07:00
committed by GitHub
parent b940baf9b6
commit debdb49b6a
+1 -3
View File
@@ -33,8 +33,6 @@
#include "bbr_manager.hpp"
#include <limits>
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
#include "common/code_utils.hpp"
@@ -160,7 +158,7 @@ void Manager::HandleMulticastListenerRegistration(const Coap::Message &aMessage,
}
else
{
VerifyOrExit(timeout < std::numeric_limits<uint32_t>::max(), status = ThreadStatusTlv::kMlrNoPersistent);
VerifyOrExit(timeout < UINT32_MAX, status = ThreadStatusTlv::kMlrNoPersistent);
if (timeout != 0)
{