1. 11 3月, 2021 1 次提交
  2. 09 9月, 2020 1 次提交
  3. 01 12月, 2018 1 次提交
  4. 19 8月, 2018 2 次提交
    • C
      Remove top-level const from function-scope variables · ceb32778
      Cosmin Truta 提交于
      As per the const correctness rules, top-level const-ness of data
      in automatic scopes does not propagate outside of these scopes
      (unlike const-ness at lower levels, such as pointers to const data).
      
      Previously, const was used liberally, but inconsistently across the
      libpng codebase. Using const wherever applicable is not incorrect.
      However, _consistent_ use of const is difficult to maintain in such
      conditions.
      
      In conclusion, we shall continue to use const only where doing so is
      strictly necessary:
      
      1. If a function guarantees that it will not modify an argument
         passed by pointer, the corresponding function parameter should be
         a pointer-to-const (const T *).
      
      2. Static data should not be modified, therefore it should be const.
      
      Reference:
      Google C++ Style Guide
      https://google.github.io/styleguide/cppguide.html#Use_of_const
      ceb32778
    • C
      Replace the remaining uses of PNG_CONST with const · 1ef88828
      Cosmin Truta 提交于
      In v1.6.0, compiler support for const became a requirement.
      It should be used consistently. To maintain backwards compatibility,
      PNG_CONST is still maintained in deprecated form.
      1ef88828
  5. 29 7月, 2018 1 次提交
  6. 16 7月, 2018 2 次提交
  7. 18 6月, 2018 1 次提交
  8. 30 8月, 2017 1 次提交
  9. 26 8月, 2017 1 次提交
  10. 25 8月, 2017 2 次提交
  11. 01 8月, 2017 2 次提交
  12. 27 7月, 2017 1 次提交
  13. 14 7月, 2017 1 次提交
  14. 29 6月, 2017 1 次提交
  15. 07 6月, 2017 2 次提交
  16. 16 3月, 2017 1 次提交
  17. 21 1月, 2017 2 次提交
  18. 20 10月, 2016 2 次提交
  19. 03 10月, 2016 2 次提交
  20. 02 10月, 2016 1 次提交
  21. 01 10月, 2016 1 次提交
  22. 26 9月, 2016 1 次提交
  23. 04 8月, 2016 2 次提交
  24. 16 7月, 2016 1 次提交
  25. 14 7月, 2016 1 次提交
  26. 08 7月, 2016 1 次提交
  27. 30 6月, 2016 1 次提交
  28. 24 6月, 2016 2 次提交
  29. 23 6月, 2016 1 次提交
  30. 20 6月, 2016 1 次提交