1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-07 22:34:18 +01:00

WPrefs: Added the proper 'const' attribute to the dictionnary functions

A common argument to all these functions is the name of the key to
operate on, and this name is never modified by the functions. Marking
it as const reflects this, and can allow compiler to generate better
results thanks to this info.
This commit is contained in:
Christophe CURIS
2013-05-08 15:44:07 +02:00
committed by Carlos R. Mafra
parent 022421e879
commit 8517f3dcef
2 changed files with 24 additions and 24 deletions

View File

@@ -87,27 +87,27 @@ WMWindow *GetWindow(Panel *panel);
/* manipulate the dictionary for the WindowMaker domain */
WMPropList *GetObjectForKey(char *defaultName);
WMPropList *GetObjectForKey(const char *defaultName);
void SetObjectForKey(WMPropList *object, char *defaultName);
void SetObjectForKey(WMPropList *object, const char *defaultName);
void RemoveObjectForKey(char *defaultName);
void RemoveObjectForKey(const char *defaultName);
char *GetStringForKey(char *defaultName);
char *GetStringForKey(const char *defaultName);
int GetIntegerForKey(char *defaultName);
int GetIntegerForKey(const char *defaultName);
Bool GetBoolForKey(char *defaultName);
Bool GetBoolForKey(const char *defaultName);
int GetSpeedForKey(char *defaultName);
int GetSpeedForKey(const char *defaultName);
void SetIntegerForKey(int value, char *defaultName);
void SetIntegerForKey(int value, const char *defaultName);
void SetStringForKey(char *value, char *defaultName);
void SetStringForKey(char *value, const char *defaultName);
void SetBoolForKey(Bool value, char *defaultName);
void SetBoolForKey(Bool value, const char *defaultName);
void SetSpeedForKey(int speed, char *defaultName);
void SetSpeedForKey(int speed, const char *defaultName);