1
Fork 0
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:
Andreas Kling 2023-02-20 19:03:59 +01:00
parent faa1a09042
commit 33e87d1627
17 changed files with 23 additions and 23 deletions

View file

@ -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;
});
}
}