add missing const
If you want to declare a pointer which the address pointed to is constant, you should declare it as like `static const char *const var = "...";`. This commit supplies missing `const` and prevents some programming error in the future.
This commit is contained in:
@@ -1447,7 +1447,7 @@ enum spl_sort_types {
|
||||
NUM_SPELL_SORTBY
|
||||
};
|
||||
|
||||
static const char *spl_sortchoices[NUM_SPELL_SORTBY] = {
|
||||
static const char *const spl_sortchoices[NUM_SPELL_SORTBY] = {
|
||||
"by casting letter",
|
||||
"alphabetically",
|
||||
"by level, low to high",
|
||||
|
||||
Reference in New Issue
Block a user