Sketcher: Fix 512328 Use of auto that causes a copy

This commit is contained in:
Benjamin Nauck
2025-04-11 08:45:09 +02:00
parent 6e8e096198
commit a8db75a35e

View File

@@ -426,7 +426,7 @@ const std::map<std::string,std::string> SketchObject::getInternalElementMap() co
if (!internalElementMap.empty() || !MakeInternals.getValue())
return internalElementMap;
auto internalShape = InternalShape.getShape();
const auto& internalShape = InternalShape.getShape();
auto shape = Shape.getShape().located(TopLoc_Location());
if (!internalShape.isNull() && !shape.isNull()) {
std::vector<std::string> names;