Commit 83fc85c
authored
Remove shadowing "size" field from classes that inherit from SyntheticSection (#166323)
A field-named 'size' already available and perfectly usable via
inheritance from InputSection, and these variables shadow it for no good
reason.
The only interesting change here is in PaddingSection, because a
parent's field cannot be initialized via a constructor initializer list,
setting it needs to be done inside the constructor body.1 parent d163988 commit 83fc85c
2 files changed
+4
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2747 | 2747 | | |
2748 | 2748 | | |
2749 | 2749 | | |
2750 | | - | |
2751 | | - | |
2752 | | - | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
2753 | 2753 | | |
2754 | 2754 | | |
2755 | 2755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | | - | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
182 | 179 | | |
183 | 180 | | |
184 | 181 | | |
185 | | - | |
186 | 182 | | |
187 | 183 | | |
188 | 184 | | |
| |||
312 | 308 | | |
313 | 309 | | |
314 | 310 | | |
315 | | - | |
316 | | - | |
317 | 311 | | |
318 | 312 | | |
319 | 313 | | |
| |||
407 | 401 | | |
408 | 402 | | |
409 | 403 | | |
410 | | - | |
411 | | - | |
412 | 404 | | |
413 | 405 | | |
414 | 406 | | |
| |||
475 | 467 | | |
476 | 468 | | |
477 | 469 | | |
478 | | - | |
479 | 470 | | |
480 | 471 | | |
481 | 472 | | |
| |||
780 | 771 | | |
781 | 772 | | |
782 | 773 | | |
783 | | - | |
784 | | - | |
785 | 774 | | |
786 | | - | |
| 775 | + | |
787 | 776 | | |
788 | 777 | | |
789 | 778 | | |
| |||
0 commit comments