-----------------------------------------------------------------------------
| 221 | |
| 222 | //----------------------------------------------------------------------------- |
| 223 | void UndoManager::clearStack(Vector<UndoAction*> &stack) |
| 224 | { |
| 225 | Vector<UndoAction*>::iterator itr = stack.begin(); |
| 226 | while (itr != stack.end()) |
| 227 | { |
| 228 | UndoAction* undo = stack.first(); |
| 229 | stack.pop_front(); |
| 230 | |
| 231 | // Call deleteObject() if the action was registered. |
| 232 | if ( undo->isProperlyAdded() ) |
| 233 | undo->deleteObject(); |
| 234 | else |
| 235 | delete undo; |
| 236 | } |
| 237 | stack.clear(); |
| 238 | } |
| 239 | |
| 240 | //----------------------------------------------------------------------------- |
| 241 | void UndoManager::clampStack(Vector<UndoAction*> &stack) |
nothing calls this directly
no test coverage detected