Menu

#128 Add const-poisoning

None
open
5
2019-04-07
2017-05-03
Mikhail T.
No

By explicitly declaring function-parameters const, one makes the code both easier for the compiler to optimize and for a human to read. The attached patch picks what seems to be the low-hanging fruit adding const-qualifiers to various "get" methods where immediately obvious. More of the same would be welcome.

1 Attachments

Discussion

  • Hervé Drolon

    Hervé Drolon - 2019-04-07
    • labels: --> FreeImage 4.0
    • assigned_to: Hervé Drolon
    • Group: -->
     
  • Hervé Drolon

    Hervé Drolon - 2019-04-07

    Hi,

    This will need a change to the API/ABI and thus a brand new '4.0' release.
    To do according to the available time.

    Hervé

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB