1
0
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:
Christophe CURIS
2013-05-08 15:44:08 +02:00
committed by Carlos R. Mafra
parent 8517f3dcef
commit 0004d38ef8
2 changed files with 4 additions and 4 deletions

View File

@@ -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") },