1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-01 19:42:32 +01:00

WUtil: Added 'const' attribute to the filename on WM(Read|Write)PropList*

Note that the argument is also stored as-is in the PLData structure
but only for debugging purpose (warning display to user), hence the
choice to not duplicate it. As a side effect, it was 'const'-ified
too to reflect that.
This commit is contained in:
Christophe CURIS
2013-05-04 15:43:23 +02:00
committed by Carlos R. Mafra
parent ea9d3e643f
commit d40fa69b92
2 changed files with 7 additions and 7 deletions

View File

@@ -805,11 +805,11 @@ WMPropList* WMCreatePropListFromDescription(char *desc);
/* Free the returned string when you no longer need it */
char* WMGetPropListDescription(WMPropList *plist, Bool indented);
WMPropList* WMReadPropListFromFile(char *file);
WMPropList* WMReadPropListFromFile(const char *file);
WMPropList* WMReadPropListFromPipe(char *command);
WMPropList* WMReadPropListFromPipe(const char *command);
Bool WMWritePropListToFile(WMPropList *plist, char *path);
Bool WMWritePropListToFile(WMPropList *plist, const char *path);
/* ---[ WINGs/userdefaults.c ]-------------------------------------------- */