[shared] StorageCartesianFunctionStore: fix moveMemoizedModel (confusion

between arguments)
This commit is contained in:
Émilie Feral
2018-10-12 17:27:11 +02:00
parent 3399ad5411
commit 7ee5cdde82
3 changed files with 5 additions and 5 deletions

View File

@@ -20,10 +20,10 @@ void StorageCartesianFunctionStore::setMemoizedModelAtIndex(int cacheIndex, Ion:
m_functions[cacheIndex] = StorageCartesianFunction(record);
}
void StorageCartesianFunctionStore::moveMemoizedModel(int previousIndex, int nextIndex) const {
assert(nextIndex >= 0 && nextIndex < k_maxNumberOfMemoizedModels);
void StorageCartesianFunctionStore::moveMemoizedModel(int newIndex, int previousIndex) const {
assert(newIndex >= 0 && newIndex < k_maxNumberOfMemoizedModels);
assert(previousIndex >= 0 && previousIndex < k_maxNumberOfMemoizedModels);
m_functions[nextIndex] = m_functions[previousIndex];
m_functions[newIndex] = m_functions[previousIndex];
}
StorageExpressionModel * StorageCartesianFunctionStore::memoizedModelAtIndex(int cacheIndex) const {