mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-29 16:39:34 +08:00
Pass -Wshadow (#97)
Requested from: https://github.com/robinlinden/hastur/pull/12
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user