MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getStateSaver

Method getStateSaver

radiantcore/undo/UndoSystem.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23IUndoStateSaver* UndoSystem::getStateSaver(IUndoable& undoable)
24{
25 auto result = _undoables.try_emplace(&undoable, *this, undoable);
26
27 // If we're in the middle of an active undo operation, assign this to the tracker (#4861)
28 if (_activeUndoStack != nullptr)
29 {
30 result.first->second.setStack(_activeUndoStack);
31 }
32
33 return &(result.first->second);
34}
35
36void UndoSystem::releaseStateSaver(IUndoable& undoable)
37{

Callers 7

connectUndoSystemMethod · 0.80
connectUndoSystemMethod · 0.80
connectUndoSystemMethod · 0.80
connectUndoSystemMethod · 0.80
connectUndoSystemMethod · 0.80
connectUndoSystemMethod · 0.80
connectUndoSystemMethod · 0.80

Calls 1

setStackMethod · 0.80

Tested by

no test coverage detected