Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#168 Improve "const correctness"

open
nobody
None
5
2005-07-11
2005-07-11
Markus Elfring
No

Would you like to apply the advices from the article
"http://en.wikipedia.org/wiki/Const_correctness" to
your sources?
I suggest to add the key word "const" to the type
specifiers for parameters like the following.
- msg (function "fe_message")

http://cvs.sourceforge.net/viewcvs.py/xchat/xchat2/src/common/fe.h?rev=1.28&view=markup

- fmt (function "tcp_sendf")

http://cvs.sourceforge.net/viewcvs.py/xchat/xchat2/src/common/server.h?rev=1.3&view=markup

Discussion