Menu

#39 Improve const-correctness

open
None
5
2007-03-29
2005-07-11
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.
- file (function "expand_tilda")

http://cvs.sourceforge.net/viewcvs.py/fbpanel/fbpanel/misc.h?rev=1.14&view=markup

- type (function "plugin_load")

http://cvs.sourceforge.net/viewcvs.py/fbpanel/fbpanel/plugin.h?rev=1.12&view=markup

Discussion

  • Anatoly Asviyan

    Anatoly Asviyan - 2007-03-29
    • summary: Improve "const correctness" --> Improve \"const correctness\"
    • status: open --> closed
     
  • Markus Elfring

    Markus Elfring - 2007-03-29

    Logged In: YES
    user_id=572001
    Originator: YES

    How do you think about to clarify any APIs as a documentation aid?

     
  • Markus Elfring

    Markus Elfring - 2007-03-29
    • assigned_to: nobody --> aanatoly
    • summary: Improve \"const correctness\" --> Improve const-correctness
    • status: closed --> open
     

Log in to post a comment.