Menu

#1 Improve "const correctness"

open
nobody
None
5
2005-07-31
2005-07-31
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.
- source (function "SplitStr")

http://cvs.sourceforge.net/viewcvs.py/aptilis/aptilis/common/aptilis-utils.h?rev=1.3&sortby=file&view=markup

- t, r (function "BufferReplace")
lSrc, clearIt (function "CopyArray")
a, b (function "ShowError")
ErrorFuncName, ErrorLine, ErrorCode,
IndicateOutputType (function "PrintError")

http://cvs.sourceforge.net/viewcvs.py/aptilis/aptilis/common/aptilis-prototypes.h?rev=1.3&sortby=date&view=markup

Discussion


Log in to post a comment.