[apps] Clean GLobalContext

This commit is contained in:
Léa Saviot
2018-10-09 16:45:48 +02:00
committed by Émilie Feral
parent d869be7782
commit 97cba08b23
6 changed files with 90 additions and 55 deletions

View File

@@ -20,7 +20,7 @@ void StorageCartesianFunction::DefaultName(char buffer[], size_t bufferSize) {
int dotCharIndex = -1;
while (currentNumber < bufferSize - constantNameSize) {
dotCharIndex = 1 + Poincare::Integer(currentNumber).serialize(&buffer[1], bufferSize - constantNameSize + 1);
if (GlobalContext::RecordWithName(buffer).isNull()) {
if (GlobalContext::RecordBaseNameIsFree(buffer)) {
// Name found
break;
}