From 43cffd1a913d84df2dd529ef98b7178b5e56d6b2 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Tue, 30 Apr 2024 12:31:32 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20widgets:=20refactor=20a=20bit=20?= =?UTF-8?q?2x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets.hpp b/src/widgets.hpp index 37b358f..34360e8 100644 --- a/src/widgets.hpp +++ b/src/widgets.hpp @@ -30,7 +30,7 @@ namespace detail { auto centered_widget(ftxui::Component& container, const std::string_view& title, const ftxui::Element& widget) noexcept -> ftxui::Element; auto controls_widget(const std::array&& titles, const std::array, 2>&& callbacks, ftxui::ButtonOption* button_option) noexcept -> ftxui::Component; auto centered_interative_multi(const std::string_view& title, ftxui::Component& widgets) noexcept -> ftxui::Element; - auto multiline_text(const std::vector& lines) noexcept -> ftxui::Element; + auto multiline_text(std::vector&& lines) noexcept -> ftxui::Element; auto from_vector_checklist(const std::vector& opts, bool* const opts_state) noexcept -> ftxui::Components; auto from_checklist_string(const std::vector& opts, const bool* const opts_state) noexcept -> std::string; auto from_checklist_vector(const std::vector& opts, const bool* const opts_state) noexcept -> std::vector;