MCPcopy Create free account
hub / github.com/MITK/MITK / ClearList

Method ClearList

Modules/Core/src/Controllers/mitkLimitedLinearUndo.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void mitk::LimitedLinearUndo::ClearList(UndoContainer *list)
41{
42 while (!list->empty())
43 {
44 UndoStackItem *item = list->back();
45 list->pop_back();
46 delete item;
47 }
48}
49
50bool mitk::LimitedLinearUndo::SetOperationEvent(UndoStackItem *stackItem)
51{

Callers 5

~LimitedLinearUndoMethod · 0.95
SetOperationEventMethod · 0.95
ClearMethod · 0.95
ClearRedoListMethod · 0.95
SetOperationEventMethod · 0.80

Calls 3

backMethod · 0.80
pop_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected