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 670a85de97
commit db1b5a8773
28 changed files with 211 additions and 238 deletions

View File

@@ -63,9 +63,9 @@ public:
std::shared_ptr<Model> getModel(const QString& uuid);
std::shared_ptr<std::map<QString, std::shared_ptr<Model>>> getModels();
void
addModel(const QString& libraryName, const QString& path, const std::shared_ptr<Model>& model);
addModel(const QString& libraryName, const QString& path, const Model& model);
void
migrateModel(const QString& libraryName, const QString& path, const std::shared_ptr<Model>& model);
migrateModel(const QString& libraryName, const QString& path, const Model& model);
// Cache functions
void resetCache();