1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-03 23:35:55 +01:00

WUtil: Added 'const' attribute to all remaining functions where applicable

This makes the WUtil API as much const-correct as possible for
the arguments being given to its functions.

This does not make it totally correct as it does not changes the
const-ness on returned values because the goal of this patch is
to make no visible change to existing program that would use this
library.
This commit is contained in:
Christophe CURIS
2013-05-04 15:43:24 +02:00
committed by Carlos R. Mafra
parent d40fa69b92
commit 74c17bffae
4 changed files with 36 additions and 36 deletions

View File

@@ -885,7 +885,7 @@ void WMPLSetCaseSensitive(Bool caseSensitiveness)
caseSensitive = caseSensitiveness;
}
WMPropList *WMCreatePLString(char *str)
WMPropList *WMCreatePLString(const char *str)
{
WMPropList *plist;
@@ -913,7 +913,7 @@ WMPropList *WMCreatePLData(WMData * data)
return plist;
}
WMPropList *WMCreatePLDataWithBytes(unsigned char *bytes, unsigned int length)
WMPropList *WMCreatePLDataWithBytes(const unsigned char *bytes, unsigned int length)
{
WMPropList *plist;