diff --git a/plugins/feature/map/mapgui.cpp b/plugins/feature/map/mapgui.cpp index 2beea68c3..5b8866570 100644 --- a/plugins/feature/map/mapgui.cpp +++ b/plugins/feature/map/mapgui.cpp @@ -366,7 +366,7 @@ static bool crossesAntimeridianWest(double prevLon, double lon) return crosses; } -static bool crossesEdge(double lon, double prevLon, double bottomLeftLongitude, double bottomRightLongitude, double width, bool antimed) +static bool crossesEdge(double lon, double prevLon, double bottomLeftLongitude, double bottomRightLongitude) { // Determine if antimerdian is between the two points if (!crossesAntimeridian(prevLon, lon)) @@ -484,7 +484,7 @@ void MapModel::splitTrack(const QList& coords, const QVariantL // Can be onscreen after having crossed edge from other side // Or can be onscreen after previously having been off screen onScreen = isOnScreen(lon, bottomLeftLongitude, bottomRightLongitude, width, antimed); - bool crossedEdge = crossesEdge(lon, prevLon, bottomLeftLongitude, bottomRightLongitude, width, antimed); + bool crossedEdge = crossesEdge(lon, prevLon, bottomLeftLongitude, bottomRightLongitude); if ((onScreen && !crossedEdge) || (onScreen && !prevOnScreen)) { if ((i > 0) && (tracks[trackIdx]->size() == 0)) // Could also use (onScreen && !prevOnScreen)? @@ -554,7 +554,8 @@ void MapModel::splitTrack(const QList& coords, const QVariantL void MapModel::viewChanged(double bottomLeftLongitude, double bottomRightLongitude) { - if (!isnan(bottomLeftLongitude)) + (void) bottomRightLongitude; + if (!std::isnan(bottomLeftLongitude)) { for (int row = 0; row < m_items.size(); row++) { diff --git a/sdrbase/feature/feature.cpp b/sdrbase/feature/feature.cpp index c7aabb93f..d45989099 100644 --- a/sdrbase/feature/feature.cpp +++ b/sdrbase/feature/feature.cpp @@ -26,8 +26,8 @@ #include "maincore.h" Feature::Feature(const QString& uri, WebAPIAdapterInterface *webAPIAdapterInterface) : - m_webAPIAdapterInterface(webAPIAdapterInterface), m_guiMessageQueue(nullptr), + m_webAPIAdapterInterface(webAPIAdapterInterface), m_name(uri), m_uri(uri), m_uid(UidCalculator::getNewObjectId())