From 1ab69961612986a34fcd08607993872a576c717f Mon Sep 17 00:00:00 2001 From: Bill Senior Date: Tue, 26 Nov 2024 12:00:35 +0100 Subject: [PATCH] GRIDEDIT-1536 Fixed clang formatting warnings --- libs/MeshKernel/include/MeshKernel/Operations.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/MeshKernel/include/MeshKernel/Operations.hpp b/libs/MeshKernel/include/MeshKernel/Operations.hpp index c38680e71..685b57cd5 100644 --- a/libs/MeshKernel/include/MeshKernel/Operations.hpp +++ b/libs/MeshKernel/include/MeshKernel/Operations.hpp @@ -665,7 +665,7 @@ namespace meshkernel [[nodiscard]] Point ComputeAverageCoordinate(const PointVector& points, const Projection& projection) { size_t validCount = std::ranges::count_if(points, [](const Point& p) - { return p.IsValid(); }); + { return p.IsValid(); }); if (projection == Projection::sphericalAccurate) { @@ -675,7 +675,7 @@ namespace meshkernel if (validCount != points.size()) { auto iterator = std::find_if(points.begin(), points.end(), [](const Point& p) - { return p.IsValid(); }); + { return p.IsValid(); }); firstValidPoint = iterator - points.begin(); } @@ -700,12 +700,12 @@ namespace meshkernel } auto result = std::accumulate(points.begin(), points.end(), Point{0.0, 0.0}, [](const Point& sum, const Point& current) - { return current.IsValid() ? sum + current : sum; }); + { return current.IsValid() ? sum + current : sum; }); result.x = result.x / static_cast(validCount); result.y = result.y / static_cast(validCount); return result; } -} +} // namespace meshkernel template [[nodiscard]] bool meshkernel::IsPointInTriangle(const Point& point,