From 84ce6589a314decbb66bc4176c2dc7aaa8da0078 Mon Sep 17 00:00:00 2001 From: AdenKoperczak Date: Fri, 14 Feb 2025 08:32:34 -0500 Subject: [PATCH] clang-tidy fixes for fix_tooltips_at_high_zooms --- scwx-qt/source/scwx/qt/util/maplibre.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scwx-qt/source/scwx/qt/util/maplibre.cpp b/scwx-qt/source/scwx/qt/util/maplibre.cpp index 37387f99..63f5112e 100644 --- a/scwx-qt/source/scwx/qt/util/maplibre.cpp +++ b/scwx-qt/source/scwx/qt/util/maplibre.cpp @@ -46,6 +46,8 @@ glm::vec2 GetMapScale(const QMapLibre::CustomLayerRenderParameters& params) bool IsPointInPolygon(const std::vector& 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& vertices, } return inPolygon; + // NOLINTEND(cppcoreguidelines-pro-type-union-access) } glm::vec2 LatLongToScreenCoordinate(const QMapLibre::Coordinate& coordinate)