MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ResizeSnapshotCollection

Method ResizeSnapshotCollection

Source/Snapshots.cpp:670–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670void Snapshots::ResizeSnapshotCollection(int size)
671{
672 int oldSize = (int)mSnapshotCollection.size();
673 if (size != oldSize)
674 {
675 mSnapshotCollection.resize(size);
676 for (int i = oldSize; i < size; ++i)
677 mSnapshotCollection[i].mLabel = "snapshot" + ofToString(i);
678
679 if (mDisplayMode == DisplayMode::List)
680 mModuleSaveData.SetInt("num_list_snapshots", size);
681 }
682}
683
684namespace
685{

Callers

nothing calls this directly

Calls 4

ofToStringFunction · 0.85
sizeMethod · 0.80
resizeMethod · 0.80
SetIntMethod · 0.80

Tested by

no test coverage detected