Commit 2acf1bc
PDF: const-qualify scalar by-value constructor params
Add top-level const to the cheap scalar by-value parameters `n`
(ExponentialFunction) and `bits_per_sample` (SampledFunction), matching
the codebase convention of const-qualifying scalar params in definitions.
Object/vector params stay non-const because they are std::move'd into
members, so adding const would defeat the move.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uqx1dUpDUykRxui8FYwxvM1 parent 500327d commit 2acf1bc
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
0 commit comments