summaryrefslogtreecommitdiff
path: root/Userland/Games/Solitaire/Game.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-12-02 12:53:33 +0000
committerAndreas Kling <kling@serenityos.org>2021-12-05 15:31:03 +0100
commit0e2fa09f52fd48b56eb54a6a8a2203815e426c91 (patch)
tree2df734763e9d9e6c67e7889b9a60cd480ad9cfc9 /Userland/Games/Solitaire/Game.cpp
parentd95e50643e676ea3c2fbd09198a6a770ccaab83c (diff)
downloadserenity-0e2fa09f52fd48b56eb54a6a8a2203815e426c91.zip
Games: Cast unused smart-pointer return values to void
Diffstat (limited to 'Userland/Games/Solitaire/Game.cpp')
-rw-r--r--Userland/Games/Solitaire/Game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp
index 7bccaa782d..b079e47f03 100644
--- a/Userland/Games/Solitaire/Game.cpp
+++ b/Userland/Games/Solitaire/Game.cpp
@@ -294,7 +294,7 @@ void Game::mouseup_event(GUI::MouseEvent& event)
for (auto& to_intersect : m_focused_cards) {
mark_intersecting_stacks_dirty(to_intersect);
stack.push(to_intersect);
- m_focused_stack->pop();
+ (void)m_focused_stack->pop();
}
remember_move_for_undo(*m_focused_stack, stack, m_focused_cards);
@@ -629,7 +629,7 @@ void Game::perform_undo()
for (auto& to_intersect : m_last_move.cards) {
mark_intersecting_stacks_dirty(to_intersect);
m_last_move.from->push(to_intersect);
- m_last_move.to->pop();
+ (void)m_last_move.to->pop();
}
if (m_last_move.from->type() == CardStack::Type::Stock) {