WUtil: Added 'const' attribute on non-modified arguments to functions
commitbbf84eb0e8cfeb554def2487e91bdcbee15ae976
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 4 May 2013 13:43:21 +0000 (4 15:43 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 4 May 2013 15:16:18 +0000 (4 16:16 +0100)
tree4a619aaa6a068374a303dfc4581e267952701cfa
parentac89706859250ba5eb93aad10a5a5b77b77da09c
WUtil: Added 'const' attribute on non-modified arguments to functions

A number of functions do not actually modify the strings given as
parameter, but only read or duplicate it. In this case it is a good
practice to mark that parameter as pointer-to-const to let the
compiler known about it, to be able to perform appropriate
optimisations.
WINGs/WINGs/WUtil.h
WINGs/proplist.c
WINGs/string.c
WINGs/userdefaults.c