mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
Chess: Don't use Vector in a literal iterator
This commit is contained in:
parent
a79a9fb692
commit
1a8c8d2383
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ PromotionDialog::PromotionDialog(ChessWidget& chess_widget)
|
|||
main_widget.set_fill_with_background_color(true);
|
||||
main_widget.set_layout<GUI::HorizontalBoxLayout>();
|
||||
|
||||
for (auto& type : Vector({ Chess::Type::Queen, Chess::Type::Knight, Chess::Type::Rook, Chess::Type::Bishop })) {
|
||||
for (auto const& type : { Chess::Type::Queen, Chess::Type::Knight, Chess::Type::Rook, Chess::Type::Bishop }) {
|
||||
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 }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue