[ion/keyboard] Fix const const array

Change-Id: I75cfc94ed36493a78bd104f8c4734f2ecd3d042d
This commit is contained in:
Hugo Saint-Vignes
2020-10-28 15:50:42 +01:00
committed by Émilie Feral
parent aa50a5eb7c
commit f789bb156d
3 changed files with 3 additions and 3 deletions

View File

@@ -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];

View File

@@ -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,

View File

@@ -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,