mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Pass -Wshadow (#97)
Requested from: https://github.com/robinlinden/hastur/pull/12
This commit is contained in:
@@ -73,17 +73,17 @@ class Flex : public Node {
|
||||
void ComputeRequirement() override {
|
||||
requirement_.min_x = 0;
|
||||
requirement_.min_y = 0;
|
||||
if (!children.empty()) {
|
||||
children[0]->ComputeRequirement();
|
||||
requirement_ = children[0]->requirement();
|
||||
if (!children_.empty()) {
|
||||
children_[0]->ComputeRequirement();
|
||||
requirement_ = children_[0]->requirement();
|
||||
}
|
||||
f_(requirement_);
|
||||
}
|
||||
|
||||
void SetBox(Box box) override {
|
||||
if (children.empty())
|
||||
if (children_.empty())
|
||||
return;
|
||||
children[0]->SetBox(box);
|
||||
children_[0]->SetBox(box);
|
||||
}
|
||||
|
||||
FlexFunction f_;
|
||||
|
||||
Reference in New Issue
Block a user