Skip to content

Commit

Permalink
🧹 widgets: refactor a bit 3x
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Apr 30, 2024
1 parent 112bb74 commit 36f68e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 36f68e5

Please sign in to comment.