[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:
Abtin Keshavarzian
2025-01-15 11:05:15 -08:00
committed by GitHub
parent b8c4545656
commit 0e1c9a79a3
7 changed files with 18 additions and 39 deletions
+1 -4
View File
@@ -58,10 +58,7 @@ private:
bool mInitWithInstance;
};
enum : uint16_t
{
kPoolSize = 11,
};
constexpr uint16_t kPoolSize = 11;
typedef Pool<Entry, kPoolSize> EntryPool;