Menu

#9 Improve const-correctness

(unspecified)
open
nobody
(Common) (1)
5
2007-03-14
2007-03-14
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.
- http://nassp.cvs.sourceforge.net/nassp/projectApolloSource/PanelSDK/PanelSDK.h?revision=1.21&view=markup
FileName (function "PanelResources")
line (function "GetInstrumentDescriptor")
FontName (function "AddFontResource")

- http://nassp.cvs.sourceforge.net/nassp/projectApolloSource/CollisionSDK/CollisionSDK.h?revision=1.2&view=markup
PlanetName (function "VSGetAbsMaxElvLoc")

Discussion

  • Tschachim

    Tschachim - 2007-03-14

    Logged In: YES
    user_id=1204264
    Originator: NO

    Good idea, thanks for the suggestion! Since it probably will take some time until the usual developers will have time to do that, feel invited to join us and do it yourself.

    Please post here if you are interested in: http://www.ibiblio.org/mscorbit/mscforum/index.php?board=34.0

    Cheers
    Tschachim

     
  • Tschachim

    Tschachim - 2007-03-14
    • milestone: --> (unspecified)
     
MongoDB Logo MongoDB