TokTok / c-toxcore

The future of online communications.
https://tox.chat
GNU General Public License v3.0
2.21k stars 280 forks source link

cleanup: Replace pointer arithmetic with explicit `&arr[i]`. #2675

Closed iphydf closed 4 months ago

iphydf commented 4 months ago

It's equivalent, but MISRA requires the latter form. It helps readability in some cases where the type of the overloaded operator+ is unclear.


This change is Reviewable

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ca4606d) 73.70% compared to head (5dd9ee3) 73.75%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2675 +/- ## ========================================== + Coverage 73.70% 73.75% +0.05% ========================================== Files 148 148 Lines 30482 30482 ========================================== + Hits 22466 22482 +16 + Misses 8016 8000 -16 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.