mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Pass -Wshadow (#97)
Requested from: https://github.com/robinlinden/hastur/pull/12
This commit is contained in:
@@ -8,13 +8,13 @@ namespace ftxui {
|
||||
using ftxui::Screen;
|
||||
|
||||
Node::Node() {}
|
||||
Node::Node(Elements children) : children(std::move(children)) {}
|
||||
Node::Node(Elements children) : children_(std::move(children)) {}
|
||||
Node::~Node() {}
|
||||
|
||||
/// @brief Compute how much space an elements needs.
|
||||
/// @ingroup dom
|
||||
void Node::ComputeRequirement() {
|
||||
for (auto& child : children)
|
||||
for (auto& child : children_)
|
||||
child->ComputeRequirement();
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ void Node::SetBox(Box box) {
|
||||
/// @brief Display an element on a ftxui::Screen.
|
||||
/// @ingroup dom
|
||||
void Node::Render(Screen& screen) {
|
||||
for (auto& child : children)
|
||||
for (auto& child : children_)
|
||||
child->Render(screen);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user