mirror of
https://github.com/espressif/openthread.git
synced 2026-09-07 01:30:11 +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:
@@ -58,10 +58,7 @@ private:
|
||||
bool mInitWithInstance;
|
||||
};
|
||||
|
||||
enum : uint16_t
|
||||
{
|
||||
kPoolSize = 11,
|
||||
};
|
||||
constexpr uint16_t kPoolSize = 11;
|
||||
|
||||
typedef Pool<Entry, kPoolSize> EntryPool;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user