mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
WPrefs: Added const attribute to statically stored strings
Now that the function handling the configuration dictionnary are const correct, the key stored in static array can be given the const attribute.
This commit is contained in:
committed by
Carlos R. Mafra
parent
8517f3dcef
commit
0004d38ef8
@@ -66,11 +66,11 @@ typedef struct _Panel {
|
||||
* Second is the text displayed to the user
|
||||
*/
|
||||
static const struct {
|
||||
const char *key;
|
||||
/*
|
||||
* Fixme: these strings should be 'const', but 'GetStringForKey'
|
||||
* and 'WMAddListItem' do not allow us to do so
|
||||
* Fixme: this string should be 'const', but 'WMAddListItem'
|
||||
* do not allow us to do so
|
||||
*/
|
||||
char *key;
|
||||
char *title;
|
||||
} keyOptions[] = {
|
||||
{ "RootMenuKey", N_("Open applications menu") },
|
||||
|
||||
Reference in New Issue
Block a user