Skip to content

Commit fb2463b

Browse files
committed
GRIDEDIT-1699 Fixed a number of sonar cloud warnings
1 parent ffb9eed commit fb2463b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

libs/MeshKernel/include/MeshKernel/Mesh.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ namespace meshkernel
467467
/// @brief Get the circumcentre-masscentre weighting factor.
468468
///
469469
/// This value should be in the range to 0 to 1
470-
/// \f$ c_{
471470
double GetCircumcentreWeight() const;
472471

473472
// nodes

libs/MeshKernel/include/MeshKernel/Point.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ namespace meshkernel
102102
[[nodiscard]] Point operator*(int const& rhs) const { return Point(x * rhs, y * rhs); }
103103

104104
/// @brief Type conversion operator
105-
explicit operator Vector() const;
105+
explicit operator Vector() const
106+
{
107+
return Vector(x, y);
108+
}
106109

107110
/// @brief Transforms spherical coordinates to cartesian
108111
void TransformSphericalToCartesian(double referenceLatitude)
@@ -345,11 +348,6 @@ inline meshkernel::Point& meshkernel::Point::operator*=(const double p)
345348
return *this;
346349
}
347350

348-
inline meshkernel::Point::operator meshkernel::Vector() const
349-
{
350-
return Vector(x, y);
351-
}
352-
353351
inline double meshkernel::lengthSquared(const Point& p)
354352
{
355353
return p.x * p.x + p.y * p.y;

libs/MeshKernel/src/MeshFaceCenters.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ void meshkernel::algo::ComputeFaceCircumcenters(const Mesh& mesh, std::span<Poin
239239
#pragma omp parallel for private(numEdgeFacesCache, polygonNodesCache)
240240
for (int f = 0; f < numFaces; f++)
241241
{
242-
243242
UInt numberOfInteriorEdges = 0;
244243
const auto numberOfFaceNodes = mesh.GetNumFaceEdges(f);
245244

0 commit comments

Comments
 (0)