Menu

#1 Improve const-correctness

open
nobody
None
5
2008-07-05
2008-07-05
No

Would you like to apply the advices from the article "http://en.wikipedia.org/wiki/Const-correctness" to more places in your sources?
I suggest to add the key word "const" to the type specifiers for parameters like the following.
- name (functions "getTime1", "fileExist")
http://cccpf.cvs.sourceforge.net/cccpf/tools/include/futils.h?revision=1.1&view=markup

- id (function "ccc_init")
http://cccpf.cvs.sourceforge.net/cccpf/tools-work/ccc-rtl/ccc-rtl.c?revision=1.1&view=markup

Discussion


Log in to post a comment.

MongoDB Logo MongoDB