Assembly: BOM, apply suggestion: do not copy baseName

Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
Furgo
2025-04-22 16:20:05 +02:00
parent ed518f5c44
commit 242c724be2
2 changed files with 2 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ void BomObject::addObjectToBom(App::DocumentObject* obj, size_t row, std::string
}
}
std::string BomObject::getBomPropertyValue(App::DocumentObject* obj, std::string baseName)
std::string BomObject::getBomPropertyValue(App::DocumentObject* obj, const std::string& baseName)
{
App::Property* prop = obj->getPropertyByName(baseName.c_str());

View File

@@ -96,7 +96,7 @@ public:
std::vector<App::DocumentObject*> obj_list;
private:
std::string getBomPropertyValue(App::DocumentObject* obj, std::string baseName);
std::string getBomPropertyValue(App::DocumentObject* obj, const std::string& baseName);
};