mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:55:08 +00:00
LibGUI: Cast unused smart-pointer return values to void
This commit is contained in:
parent
907feb84a0
commit
d95e50643e
4 changed files with 5 additions and 5 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue