mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 12:47:47 +00:00
[style] use constexpr instead of anonymous enum for constants (#11161)
This commit updates a few remaining places where anonymous enums were used to declare constants, replacing them with `static constexpr`.
This commit is contained in:
@@ -39,12 +39,9 @@ namespace ot {
|
||||
|
||||
void TestMessage(void)
|
||||
{
|
||||
enum : uint16_t
|
||||
{
|
||||
kMaxSize = (kBufferSize * 3 + 24),
|
||||
kOffsetStep = 101,
|
||||
kLengthStep = 21,
|
||||
};
|
||||
static constexpr uint16_t kMaxSize = (kBufferSize * 3 + 24);
|
||||
static constexpr uint16_t kOffsetStep = 101;
|
||||
static constexpr uint16_t kLengthStep = 21;
|
||||
|
||||
Instance *instance;
|
||||
MessagePool *messagePool;
|
||||
|
||||
Reference in New Issue
Block a user