diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-12-02 12:53:02 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-05 15:31:03 +0100 |
commit | d95e50643e676ea3c2fbd09198a6a770ccaab83c (patch) | |
tree | 18ff76c5ad3b1e465652f2ed2a90dc950c1f65e6 /Userland/Libraries/LibGUI/UndoStack.cpp | |
parent | 907feb84a013559b59be381050e9bf71537ded9f (diff) | |
download | serenity-d95e50643e676ea3c2fbd09198a6a770ccaab83c.zip |
LibGUI: Cast unused smart-pointer return values to void
Diffstat (limited to 'Userland/Libraries/LibGUI/UndoStack.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/UndoStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/UndoStack.cpp b/Userland/Libraries/LibGUI/UndoStack.cpp index 11585e362d..9ca07e0f57 100644 --- a/Userland/Libraries/LibGUI/UndoStack.cpp +++ b/Userland/Libraries/LibGUI/UndoStack.cpp @@ -57,7 +57,7 @@ void UndoStack::push(NonnullOwnPtr<Command> command) { // If the stack cursor is behind the top of the stack, nuke everything from here to the top. while (m_stack.size() != m_stack_index) - m_stack.take_last(); + (void)m_stack.take_last(); if (m_clean_index.has_value() && m_clean_index.value() > m_stack.size()) m_clean_index = {}; |