Menu

#1 Improve "const correctness"

open
nobody
None
5
2012-08-15
2005-08-18
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.
- fname, orientation (function "PS_Open")
font, sizemm (function "PS_set_font")

http://cvs.sourceforge.net/viewcvs.py/psplots/psplot/psplot.h?rev=3.4&view=markup

  • title, fname, oriention, sizefactor (functions
    "SPS_plot", "XPS_plot")

http://cvs.sourceforge.net/viewcvs.py/psplots/psplot/xpsplot.h?rev=3.1&view=markup

Discussion

Anonymous
Anonymous

Add attachments
Cancel