[notifier] define 'kEventStrings[]' as const pointer (#5673)

This commit is contained in:
Abtin Keshavarzian
2020-10-21 12:06:00 -07:00
committed by GitHub
parent 968440da34
commit 5f956cfe95
+1 -1
View File
@@ -239,7 +239,7 @@ const char *Notifier::EventToString(Event aEvent) const
// To ensure no clipping of flag names in the logs, the returned
// strings from this method should have shorter length than
// `kMaxFlagNameLength` value.
static const char *kEventStrings[] = {
static const char *const kEventStrings[] = {
"Ip6+", // kEventIp6AddressAdded (1 << 0)
"Ip6-", // kEventIp6AddressRemoved (1 << 1)
"Role", // kEventThreadRoleChanged (1 << 2)