Pass -Wshadow (#97)

Requested from:
https://github.com/robinlinden/hastur/pull/12
This commit is contained in:
Arthur Sonzogni
2021-05-16 17:18:11 +02:00
committed by GitHub
parent cf4fdf257e
commit a574a6c3ee
16 changed files with 59 additions and 56 deletions

View File

@@ -22,7 +22,7 @@ class HFlow : public Node {
requirement_.flex_grow_y = 1;
requirement_.flex_shrink_x = 0;
requirement_.flex_shrink_y = 0;
for (auto& child : children)
for (auto& child : children_)
child->ComputeRequirement();
}
@@ -34,7 +34,7 @@ class HFlow : public Node {
int y = box.y_min;
int y_next = y; // The position of next row of elements.
for (auto& child : children) {
for (auto& child : children_) {
Requirement requirement = child->requirement();
// Does it fit the end of the row?