From 84a774e2f2a9bf734fcf5d9ef2f7030d4136ec61 Mon Sep 17 00:00:00 2001 From: Stefan Kebekus Date: Tue, 18 Feb 2025 08:42:39 +0100 Subject: [PATCH] Add warnings --- src/geomaps/VACLibrary.cpp | 1 + src/geomaps/VACLibrary.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/geomaps/VACLibrary.cpp b/src/geomaps/VACLibrary.cpp index b9b678d23..829e9bd88 100644 --- a/src/geomaps/VACLibrary.cpp +++ b/src/geomaps/VACLibrary.cpp @@ -315,6 +315,7 @@ QVector GeoMaps::VACLibrary::vacs4Point(const QGeoCoordinate& posi { continue; } +#warning WRONG. Rectangle need not be coordinate-aligned const QGeoRectangle rc(vac.topLeft, vac.bottomRight); if (rc.contains(position)) { diff --git a/src/geomaps/VACLibrary.h b/src/geomaps/VACLibrary.h index 878b057f8..df9d4f931 100644 --- a/src/geomaps/VACLibrary.h +++ b/src/geomaps/VACLibrary.h @@ -165,6 +165,7 @@ class VACLibrary : public QObject * * @returns List of all VACs installed */ +#warning docu [[nodiscard]] Q_INVOKABLE QVector vacs4Point(const QGeoCoordinate& position); signals: