1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:28:11 +00:00

Userland: Use default initializer instead of an empty string for Buttons

This commit is contained in:
Karol Kosek 2023-02-12 10:37:38 +01:00 committed by Linus Groh
parent d32d4029d3
commit f802920a3a
3 changed files with 3 additions and 4 deletions

View file

@ -23,7 +23,7 @@ PromotionDialog::PromotionDialog(ChessWidget& chess_widget)
main_widget->set_layout<GUI::HorizontalBoxLayout>();
for (auto const& type : { Chess::Type::Queen, Chess::Type::Knight, Chess::Type::Rook, Chess::Type::Bishop }) {
auto& button = main_widget->add<GUI::Button>("");
auto& button = main_widget->add<GUI::Button>();
button.set_fixed_height(70);
button.set_icon(chess_widget.get_piece_graphic({ chess_widget.board().turn(), type }));
button.on_click = [this, type](auto) {