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:
parent
3423b54eb9
commit
83687f85df
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue