🧹 widgets: refactor a bit 3x

This commit is contained in:
Vladislav Nepogodin 2024-04-30 13:47:43 +04:00
parent 112bb742da
commit 36f68e505a
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -92,7 +92,7 @@ Element multiline_text(std::vector<std::string>&& lines) noexcept {
Elements multiline;
std::transform(std::make_move_iterator(lines.begin()), std::make_move_iterator(lines.end()), std::back_inserter(multiline),
[=](auto&& line) -> Element { return std::move(text(std::forward<decltype(line)>(line))); });
[=](auto&& line) -> Element { return text(std::forward<decltype(line)>(line)); });
return std::move(vbox(std::move(multiline))) | frame;
}