mirror of
https://github.com/RGBCube/serenity
synced 2025-09-14 02:37:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -929,13 +929,13 @@ void Game::dump_state() const
|
|||
auto& player = m_players[i];
|
||||
dbgln("Player {}", player.name);
|
||||
dbgln("Hand:");
|
||||
for (const auto& card : player.hand)
|
||||
for (auto const& card : player.hand)
|
||||
if (card.is_null())
|
||||
dbgln(" <empty>");
|
||||
else
|
||||
dbgln(" {}", *card);
|
||||
dbgln("Taken:");
|
||||
for (const auto& card : player.cards_taken)
|
||||
for (auto const& card : player.cards_taken)
|
||||
dbgln(" {}", card);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ bool Player::has_card_of_suit(Card::Suit suit)
|
|||
return matching_card.has_value();
|
||||
}
|
||||
|
||||
void Player::remove_cards(const NonnullRefPtrVector<Card>& cards)
|
||||
void Player::remove_cards(NonnullRefPtrVector<Card> const& cards)
|
||||
{
|
||||
for (auto& card : cards) {
|
||||
hand.remove_first_matching([&card](auto& other_card) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue