| 668 | } |
| 669 | |
| 670 | void 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 | |
| 684 | namespace |
| 685 | { |
nothing calls this directly
no test coverage detected