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