diff --git a/src/ftxui/component/dropdown.cpp b/src/ftxui/component/dropdown.cpp index 3faa103a25bfe727101ef98e39bbc41f58e7cb07..96e94f58fb298b88029dce05c79cd6dcfeb56002 100644 --- a/src/ftxui/component/dropdown.cpp +++ b/src/ftxui/component/dropdown.cpp @@ -28,7 +28,7 @@ Component Dropdown(ConstStringListRef entries, int* selected) { } return hbox({prefix, t}); }; - checkbox_ = Checkbox(&title_, &show_, option), + checkbox_ = Checkbox(&title_, &show_, option); radiobox_ = Radiobox(entries_, selected_); Add(Container::Vertical({ diff --git a/src/ftxui/component/resizable_split.cpp b/src/ftxui/component/resizable_split.cpp index c4973e08dd940138b249d0a4550e8ce888a984aa..1f75fd70201918242e8d952f79bc5e0d69d4bef4 100644 --- a/src/ftxui/component/resizable_split.cpp +++ b/src/ftxui/component/resizable_split.cpp @@ -93,7 +93,7 @@ class ResizableSplitBase : public ComponentBase { options_->back->Render() | xflex, }) | reflect(box_); - }; + } Element RenderRight() { return hbox({ @@ -103,7 +103,7 @@ class ResizableSplitBase : public ComponentBase { size(WIDTH, EQUAL, options_->main_size()), }) | reflect(box_); - }; + } Element RenderTop() { return vbox({ @@ -113,7 +113,7 @@ class ResizableSplitBase : public ComponentBase { options_->back->Render() | yflex, }) | reflect(box_); - }; + } Element RenderBottom() { return vbox({ @@ -123,7 +123,7 @@ class ResizableSplitBase : public ComponentBase { size(HEIGHT, EQUAL, options_->main_size()), }) | reflect(box_); - }; + } private: Ref<ResizableSplitOption> options_; diff --git a/src/ftxui/dom/frame.cpp b/src/ftxui/dom/frame.cpp index 98f24a3840e7d8c747427642d9f931125dc222e0..6cc94cd1f1ff23f86470658e31d475ce888027c8 100644 --- a/src/ftxui/dom/frame.cpp +++ b/src/ftxui/dom/frame.cpp @@ -27,7 +27,7 @@ class Select : public Node { selected_box.x_max = requirement_.min_x - 1; selected_box.y_max = requirement_.min_y - 1; requirement_.selection = Requirement::SELECTED; - }; + } void SetBox(Box box) override { Node::SetBox(box); @@ -48,7 +48,7 @@ class Focus : public Select { void ComputeRequirement() override { Select::ComputeRequirement(); requirement_.selection = Requirement::FOCUSED; - }; + } void Render(Screen& screen) override { Select::Render(screen); diff --git a/src/ftxui/dom/scroll_indicator.cpp b/src/ftxui/dom/scroll_indicator.cpp index 753b2397745a73626829c9415a721a286ab30eef..cac1d05a6eef5ccdde37d7f161c99b3d0bd73eea 100644 --- a/src/ftxui/dom/scroll_indicator.cpp +++ b/src/ftxui/dom/scroll_indicator.cpp @@ -64,7 +64,7 @@ Element vscroll_indicator(Element child) { screen.PixelAt(x, y) = Pixel(); screen.PixelAt(x, y).character = c; } - }; + } }; return std::make_shared<Impl>(std::move(child)); }