MeshPart: [skip ci] Fix several clazy issues:

* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Use multi-arg instead [-Wclazy-qstring-arg]
This commit is contained in:
wmayer
2022-07-25 10:34:51 +02:00
parent 5551611ede
commit 4c0b62555e
5 changed files with 17 additions and 17 deletions

View File

@@ -785,7 +785,7 @@ void MeshProjection::findSectionParameters(const TopoDS_Edge& edge, const Base::
const MeshCore::MeshPointArray& points = _rcMesh.GetPoints();
Base::Vector3f res;
for (auto it : facets) {
for (const auto& it : facets) {
for (int i=0; i<3; i++) {
Base::Vector3f pt1 = points[it._aulPoints[i]];
Base::Vector3f pt2 = points[it._aulPoints[(i+1)%3]];
@@ -860,7 +860,7 @@ void MeshProjection::projectOnMesh(const std::vector<Base::Vector3f>& pointsIn,
const MeshCore::MeshFacetArray& facets = _rcMesh.GetFacets();
const MeshCore::MeshPointArray& points = _rcMesh.GetPoints();
for (auto it : facets) {
for (const auto& it : facets) {
for (int i=0; i<3; i++) {
if (!it.HasNeighbour(i)) {
boundaryPoints.push_back(points[it._aulPoints[i]]);
@@ -985,7 +985,7 @@ void MeshProjection::projectParallelToMesh (const std::vector<PolyLine> &aEdges,
Base::SequencerLauncher seq( "Project curve on mesh", aEdges.size() );
for (auto it : aEdges) {
for (const auto& it : aEdges) {
std::vector<Base::Vector3f> points = it.points;
typedef std::pair<Base::Vector3f, MeshCore::FacetIndex> HitPoint;