diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-20 16:58:37 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-12-20 16:58:37 +0100 |
commit | 7e7a53c415b82cceee6173922987b772b1d51c10 (patch) | |
tree | 41623531c123c352d207ac0b0d0727e357054bcc /MetersPanel.c | |
parent | 6b100b0cf47dda06d1dc1d38211d910488b5d803 (diff) |
Mark event arrays const
Diffstat (limited to 'MetersPanel.c')
-rw-r--r-- | MetersPanel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MetersPanel.c b/MetersPanel.c index 7e47ad8b..7e20be0f 100644 --- a/MetersPanel.c +++ b/MetersPanel.c @@ -22,7 +22,7 @@ in the source distribution for its full text. // we call them "Styles". static const char* const MetersFunctions[] = {"Style ", "Move ", " ", "Delete", "Done ", NULL}; static const char* const MetersKeys[] = {"Space", "Enter", " ", "Del", "F10"}; -static int MetersEvents[] = {' ', 13, ERR, KEY_DC, KEY_F(10)}; +static const int MetersEvents[] = {' ', 13, ERR, KEY_DC, KEY_F(10)}; // We avoid UTF-8 arrows ← → here as they might display full-width on Chinese // terminals, breaking our aligning. @@ -30,7 +30,7 @@ static int MetersEvents[] = {' ', 13, ERR, KEY_DC, KEY_F(10)}; // considered "Ambiguous characters". static const char* const MetersMovingFunctions[] = {"Style ", "Lock ", "Up ", "Down ", "Left ", "Right ", " ", "Delete", "Done ", NULL}; static const char* const MetersMovingKeys[] = {"Space", "Enter", "Up", "Dn", "<-", "->", " ", "Del", "F10"}; -static int MetersMovingEvents[] = {' ', 13, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, ERR, KEY_DC, KEY_F(10)}; +static const int MetersMovingEvents[] = {' ', 13, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, ERR, KEY_DC, KEY_F(10)}; static FunctionBar* Meters_movingBar = NULL; void MetersPanel_cleanup() { |