Materials: Pass by reference instead of pointers
Refactoring topass by reference instead of using existing pointers.
This commit is contained in:
committed by
Chris Hennes
parent
b7008de12a
commit
8b9f576538
@@ -342,7 +342,7 @@ void ModelManager::migrateToExternal(const std::shared_ptr<Materials::ModelLibra
|
||||
name.toStdString().c_str());
|
||||
|
||||
auto model = _localManager->getModel(uuid);
|
||||
_externalManager->migrateModel(library->getName(), path, model);
|
||||
_externalManager->migrateModel(library->getName(), path, *model);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -360,7 +360,7 @@ void ModelManager::validateMigration(const std::shared_ptr<Materials::ModelLibra
|
||||
|
||||
auto model = _localManager->getModel(uuid);
|
||||
auto externalModel = _externalManager->getModel(uuid);
|
||||
model->validate(externalModel);
|
||||
model->validate(*externalModel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user