mirror of
https://github.com/RGBCube/serenity
synced 2025-10-14 05:32:20 +00:00
14 lines
251 B
C++
14 lines
251 B
C++
#include "cuki.h"
|
|
#include "UndoStack.h"
|
|
|
|
void UndoStack::push(OwnPtr<Operation>&& op)
|
|
{
|
|
m_stack.push(std::move(op));
|
|
}
|
|
|
|
OwnPtr<Operation> UndoStack::pop()
|
|
{
|
|
OwnPtr<Operation> op = std::move(m_stack.top());
|
|
m_stack.pop();
|
|
return op;
|
|
}
|