Materials: Pass by reference instead of pointers

Refactoring topass by reference instead of using existing pointers.
This commit is contained in:
David Carter
2025-05-29 10:22:58 -04:00
committed by Chris Hennes
parent b7008de12a
commit 8b9f576538
28 changed files with 211 additions and 238 deletions

View File

@@ -163,17 +163,17 @@ std::shared_ptr<std::map<QString, std::shared_ptr<Model>>> ModelManagerExternal:
void ModelManagerExternal::addModel(const QString& libraryName,
const QString& path,
const std::shared_ptr<Model>& model)
const Model& model)
{
_cache.erase(model->getUUID().toStdString());
_cache.erase(model.getUUID().toStdString());
ExternalManager::getManager()->addModel(libraryName, path, model);
}
void ModelManagerExternal::migrateModel(const QString& libraryName,
const QString& path,
const std::shared_ptr<Model>& model)
const Model& model)
{
_cache.erase(model->getUUID().toStdString());
_cache.erase(model.getUUID().toStdString());
ExternalManager::getManager()->migrateModel(libraryName, path, model);
}