Another attempt to fix #6063 (#7706)

This commit is contained in:
Bertrand Songis
2020-06-08 10:08:20 +02:00
committed by GitHub
parent 9547e1c999
commit 6609481c23
3 changed files with 26 additions and 22 deletions
+4 -4
View File
@@ -288,8 +288,8 @@ ModelsList::~ModelsList()
void ModelsList::init()
{
loaded = false;
currentCategory = NULL;
currentModel = NULL;
currentCategory = nullptr;
currentModel = nullptr;
modelsCount = 0;
}
@@ -368,12 +368,12 @@ void ModelsList::save()
f_close(&file);
}
void ModelsList::setCurrentCategorie(ModelsCategory* cat)
void ModelsList::setCurrentCategory(ModelsCategory * cat)
{
currentCategory = cat;
}
void ModelsList::setCurrentModel(ModelCell* cell)
void ModelsList::setCurrentModel(ModelCell * cell)
{
currentModel = cell;
if (!currentModel->valid_rfData)