[apps/reg] Store::m_seriesChecksum is Snapshot::m_prevModelsVersions

Share these objects instead of duplicating them
This commit is contained in:
Léa Saviot
2020-03-10 15:13:22 +01:00
committed by RubenNumworks
parent 53705fb333
commit 702772a7c9
6 changed files with 21 additions and 18 deletions

View File

@@ -352,7 +352,8 @@ uint32_t GraphController::modelVersion() {
}
uint32_t GraphController::modelVersionAtIndex(size_t i) {
return m_store->seriesChecksumAtIndex(i);
assert(i < numberOfMemoizedVersions());
return *(m_store->seriesChecksum() + i);
}
uint32_t GraphController::rangeVersion() {