Skip to content

Commit

Permalink
GRIDEDIT-1558 Fixed clang formatting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BillSenior committed Jan 7, 2025
1 parent 2ea20df commit d6717c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/MeshKernelApi/src/MeshKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3381,11 +3381,12 @@ namespace meshkernelapi
meshkernel::UInt enclosureCount = 0;

// Find the index of the first point in the polygnal enclosure with index enclosureIndex
for (meshkernel::UInt i = 0; i < polygonPoints.size (); ++i)
for (meshkernel::UInt i = 0; i < polygonPoints.size(); ++i)
{
if ((polygonPoints [i].x == meshkernel::constants::missing::doubleValue && polygonPoints [i].y == meshkernel::constants::missing::doubleValue) || i == polygonPoints.size () - 1)
if ((polygonPoints[i].x == meshkernel::constants::missing::doubleValue && polygonPoints[i].y == meshkernel::constants::missing::doubleValue) || i == polygonPoints.size() - 1)
{
if (enclosureCount == enclosureIndex) {
if (enclosureCount == enclosureIndex)
{
enclosureStartPoint = enclosurePreviousStartPoint;
break;
}
Expand All @@ -3397,12 +3398,11 @@ namespace meshkernelapi

const std::vector<meshkernel::Point>& snappedPolygonPoints = polygons.Enclosure(enclosureIndex).Outer().Nodes();

for (size_t i = 0; i < snappedPolygonPoints.size (); ++i)
for (size_t i = 0; i < snappedPolygonPoints.size(); ++i)
{
polygon.coordinates_x[i + enclosureStartPoint] = snappedPolygonPoints[i].x;
polygon.coordinates_y[i + enclosureStartPoint] = snappedPolygonPoints[i].y;
}

}
catch (...)
{
Expand Down

0 comments on commit d6717c1

Please sign in to comment.