mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:27:44 +00:00
Userland: Fix remaining smart pointer const-correctness issues
This commit is contained in:
parent
faa1a09042
commit
33e87d1627
17 changed files with 23 additions and 23 deletions
|
@ -162,7 +162,7 @@ void Player::remove_cards(NonnullRefPtrVector<Card> const& cards)
|
|||
{
|
||||
for (auto& card : cards) {
|
||||
hand.remove_first_matching([&card](auto& other_card) {
|
||||
return other_card == card;
|
||||
return other_card.ptr() == &card;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue