MCPcopy Create free account
hub / github.com/WheretIB/nullc / ResetHistory

Method ResetHistory

GUI/RichTextarea.cpp:325–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 2

OnDestroyFunction · 0.80
SetAreaTextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected