1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

LibCards+Solitaire: Rename CardStack::move_to_stack() -> take_all()

`a.move_to_stack(b)` sounded too much like it moves a's cards to b, when
it actually moves b's cards to a.
This commit is contained in:
Sam Atkins 2023-01-22 21:27:23 +00:00 committed by Linus Groh
parent 3423b54eb9
commit 83687f85df
3 changed files with 3 additions and 3 deletions

View file

@ -323,7 +323,7 @@ NonnullRefPtr<Card> CardStack::pop()
return card;
}
void CardStack::move_to_stack(CardStack& stack)
void CardStack::take_all(CardStack& stack)
{
while (!m_stack.is_empty()) {
auto card = m_stack.take_first();