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

@@ -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);
}