mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion/keyboard] Fix const const array
Change-Id: I75cfc94ed36493a78bd104f8c4734f2ecd3d042d
This commit is contained in:
committed by
Émilie Feral
parent
aa50a5eb7c
commit
f789bb156d
@@ -11,7 +11,7 @@ namespace Events {
|
||||
extern const EventData s_dataForEvent[4*Event::PageSize];
|
||||
|
||||
#ifndef NDEBUG
|
||||
extern const const char * s_nameForEvent[255];
|
||||
extern const char * const s_nameForEvent[255];
|
||||
|
||||
inline const char * Event::name() const {
|
||||
return s_nameForEvent[m_id];
|
||||
|
||||
@@ -49,7 +49,7 @@ const EventData s_dataForEvent[4 * Event::PageSize] = {
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
||||
const char * s_nameForEvent[255] = {
|
||||
const char * const s_nameForEvent[255] = {
|
||||
// Plain
|
||||
"Left", "Up", "Down", "Right", "OK", "Back",
|
||||
"Home", "OnOff", nullptr, nullptr, nullptr, nullptr,
|
||||
|
||||
@@ -49,7 +49,7 @@ const EventData s_dataForEvent[4 * Event::PageSize] = {
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
||||
const char * s_nameForEvent[255] = {
|
||||
const char * const s_nameForEvent[255] = {
|
||||
// Plain
|
||||
"Left", "Up", "Down", "Right", "OK", "Back",
|
||||
"Home", "nullptr", "OnOff", nullptr, nullptr, nullptr,
|
||||
|
||||
Reference in New Issue
Block a user