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:
committed by
Carlos R. Mafra
parent
d40fa69b92
commit
74c17bffae
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user