#10 Improve const-correctness

Next Release
open
None
5
2008-09-24
2008-07-03
No

Would you like to apply the advices from the article "http://en.wikipedia.org/wiki/Const-correctness" to more places in your sources?
I suggest to add the key word "const" to the type specifiers for parameters like the following.
img (functions "dmtxImageGet...", "dmtxPixelFromImage", "dmtxColor3FromImage...")
v1, v2 (functions "dmtxColor3Add", "dmtxColor3Sub", "dmtxColor3Cross")
return type for the function "dmtxVersion"
http://libdmtx.svn.sourceforge.net/viewvc/libdmtx/dmtx.h?revision=185&view=markup

Discussion

  • Mike Laughton

    Mike Laughton - 2008-09-24

    Thanks for the suggestion, Markus. This email notice just indicates that I am assigning the feature request to myself, but I will look into incorporating this principle in the future.

    Thanks,
    Mike

     
  • Mike Laughton

    Mike Laughton - 2008-09-24
    • assigned_to: nobody --> mblaughton
     
  • Markus Elfring

    Markus Elfring - 2008-10-02

    Thanks for your acceptance.

    I propose to mark more data structures for read-only usage.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks