Sketcher: Remove some unused lambda captures

This commit is contained in:
Ajinkya Dahale
2025-04-25 17:38:15 +05:30
committed by Benjamin Nauck
parent fddf704a4d
commit 1d5ab2b57f

View File

@@ -333,7 +333,7 @@ void SketchObject::buildShape()
std::vector<Part::TopoShape> vertices;
int geoId = 0;
auto addVertex = [this, &vertices](auto vertex, auto name) {
auto addVertex = [&vertices](auto vertex, auto name) {
if (!vertex.hasElementMap()) {
vertex.resetElementMap(std::make_shared<Data::ElementMap>());
}
@@ -828,7 +828,7 @@ void SketchObject::generateId(const Part::Geometry* geo)
return;
}
auto isInIt2 = [this, &it2](auto& id) {
auto isInIt2 = [&it2](auto& id) {
if (it2->find(id) != it2->end()) {
return true;
}