Menu

#211 Improve "const correctness"

open-accepted
None
5
2005-06-24
2005-06-23
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 "comment" for the
function "gpe_set_comment".

Discussion

  • Hans Ulrich Niedermann

    • assigned_to: nobody --> hun
    • status: open --> open-accepted
     
  • Hans Ulrich Niedermann

    Logged In: YES
    user_id=59853

    Good eye :)

    The gpe_* functions are internal functions, so we can change
    them without breaking compatibility.

    In fact, we already have done so in CVS: The gpe_* functions
    aren't exported any more.

    But we can keep this report around as a reminder for the
    next developer who does any internal cleanups/refactoring.

     

Log in to post a comment.