#44 Improve const-correctness

v1.6.2.0
closed-fixed
None
5
2016-12-05
2005-07-07
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.
- file_name (function "MyPNGWrite")

http://cvs.sourceforge.net/viewcvs.py/pymol/pymol/layer
0/MyPNG.h?rev=1.5&view=markup

- src (function "ParseWord")

http://cvs.sourceforge.net/viewcvs.py/pymol/pymol/layer
0/Parse.h?rev=1.7&view=markup

Discussion

  • Markus Elfring

    Markus Elfring - 2008-10-02
    • assigned_to: nobody --> wdelano
    • summary: Improve "const correctness" --> Improve const-correctness
     
  • Thomas Holder

    Thomas Holder - 2016-12-05
    • status: open --> closed-fixed
    • assigned_to: Warren L. DeLano --> Thomas Holder
    • Group: --> v1.6.2.0
     
  • Thomas Holder

    Thomas Holder - 2016-12-05

    const correctness has been heavily refactored since about r4089

     

Log in to post a comment.