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 DBox : public Node {
requirement_.flex_grow_y = 0;
requirement_.flex_shrink_x = 0;
requirement_.flex_shrink_y = 0;
for (auto& child : children) {
for (auto& child : children_) {
child->ComputeRequirement();
requirement_.min_x =
std::max(requirement_.min_x, child->requirement().min_x);
@@ -39,17 +39,17 @@ class DBox : public Node {
void SetBox(Box box) override {
Node::SetBox(box);
for (auto& child : children)
for (auto& child : children_)
child->SetBox(box);
}
};
/// @brief Stack several element on top of each other.
/// @param children The input element.
/// @param children_ The input element.
/// @return The right aligned element.
/// @ingroup dom
Element dbox(Elements children) {
return std::make_shared<DBox>(std::move(children));
Element dbox(Elements children_) {
return std::make_shared<DBox>(std::move(children_));
}
} // namespace ftxui