| 323 | }; |
| 324 | |
| 325 | void ResetHistory() |
| 326 | { |
| 327 | // While we have snapshots, delete them |
| 328 | while(firstShotU) |
| 329 | { |
| 330 | Snapshot *next = firstShotU->nextShot; |
| 331 | delete firstShotU; |
| 332 | firstShotU = next; |
| 333 | } |
| 334 | firstShotU = lastShotU = NULL; |
| 335 | while(firstShotR) |
| 336 | { |
| 337 | Snapshot *next = firstShotR->nextShot; |
| 338 | delete firstShotR; |
| 339 | firstShotR = next; |
| 340 | } |
| 341 | firstShotR = lastShotR = NULL; |
| 342 | } |
| 343 | void AddSnapshotToList(bool redoList = false) |
| 344 | { |
| 345 | Snapshot *&firstShot = redoList ? firstShotR : firstShotU; |
no outgoing calls
no test coverage detected