clang-tidy fixes for fix_tooltips_at_high_zooms

This commit is contained in:
AdenKoperczak 2025-02-14 08:32:34 -05:00
parent fbed3fc8ab
commit 84ce6589a3

View file

@ -46,6 +46,8 @@ glm::vec2 GetMapScale(const QMapLibre::CustomLayerRenderParameters& params)
bool IsPointInPolygon(const std::vector<glm::vec2>& vertices,
const glm::vec2& point)
{
// All members of these unions are floats, so no type safety violation
// NOLINTBEGIN(cppcoreguidelines-pro-type-union-access)
bool inPolygon = true;
bool allSame = true;
@ -80,6 +82,7 @@ bool IsPointInPolygon(const std::vector<glm::vec2>& vertices,
}
return inPolygon;
// NOLINTEND(cppcoreguidelines-pro-type-union-access)
}
glm::vec2 LatLongToScreenCoordinate(const QMapLibre::Coordinate& coordinate)