Add undo/redo infrastructure and buffer management additions.
This commit is contained in:
15
UndoNode.cc
Normal file
15
UndoNode.cc
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "UndoNode.h"
|
||||
|
||||
|
||||
void
|
||||
UndoNode::DeleteNext() const
|
||||
{
|
||||
const UndoNode *node = next_;
|
||||
const UndoNode *next = nullptr;
|
||||
|
||||
while (node != nullptr) {
|
||||
next = node->Next();
|
||||
delete node;
|
||||
node = next;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user