#334 Improve "const correctness"

None
open
nobody
None
5
2013-08-03
2006-08-16
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 of parameters like the following.
-
http://svn.sourceforge.net/viewvc/cmusphinx/trunk/cmuclmtk/src/libs/general.h?revision=5700&view=markup
filename, mode (function "rr_fopen")
ptr, header (function "rr_fwrite")

-
http://svn.sourceforge.net/viewvc/cmusphinx/trunk/cmuclmtk/src/libs/sih.h?revision=5700&view=markup
string (functions "sih_add", "sih_lookup")
filename, verbosity (functions "sih_val_..._file")

Discussion

  • Ticket moved from /p/cmusphinx/feature-requests/26/