1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

wmaker: Added 'const' attribute to function 'GetShortcutString'

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-16 17:57:45 +02:00
committed by Carlos R. Mafra
parent 1c4ad880d1
commit 062ff99fac
2 changed files with 4 additions and 4 deletions

View File

@@ -733,16 +733,16 @@ static char *keysymToString(KeySym keysym, unsigned int state)
}
#endif
char *GetShortcutString(char *text)
char *GetShortcutString(const char *shortcut)
{
char *buffer = NULL;
char *k;
int modmask = 0;
/* KeySym ksym; */
int control = 0;
char *tmp;
char *tmp, *text;
tmp = text = wstrdup(text);
tmp = text = wstrdup(shortcut);
/* get modifiers */
while ((k = strchr(text, '+')) != NULL) {