1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 04:44:16 +01:00

WINGs: Added 'const' attribute to 'WMCreatePropListFromDescription'

To be able to do this in a clean way, it was necessary to add the
attribute also in PLData's ptr field, which is actually right
because none of the function changes its content.

The function that fills it from a file/pipe however needed small
changes to respect the const-ness of the field.
This commit is contained in:
Christophe CURIS
2013-05-09 17:34:07 +02:00
committed by Carlos R. Mafra
parent 75a0beffeb
commit 28e6bde782
2 changed files with 26 additions and 22 deletions

View File

@@ -802,7 +802,7 @@ WMPropList* WMShallowCopyPropList(WMPropList *plist);
/* Makes a completely separate replica of the original proplist */
WMPropList* WMDeepCopyPropList(WMPropList *plist);
WMPropList* WMCreatePropListFromDescription(char *desc);
WMPropList* WMCreatePropListFromDescription(const char *desc);
/* Free the returned string when you no longer need it */
char* WMGetPropListDescription(WMPropList *plist, Bool indented);