1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 08:24:43 -04:00

Fix linux warnings

This commit is contained in:
Jon Beniston
2022-02-04 22:42:05 +00:00
parent bce51d09d7
commit df8451dbde
6 changed files with 12 additions and 9 deletions
+4 -3
View File
@@ -20,8 +20,8 @@
#include "cesiuminterface.h"
CesiumInterface::CesiumInterface(const MapSettings *settings, QObject *parent) :
m_czml(settings),
MapWebSocketServer(parent)
MapWebSocketServer(parent),
m_czml(settings)
{
}
@@ -202,7 +202,8 @@ void CesiumInterface::removeAllCZMLEntities()
void CesiumInterface::initCZML()
{
czml(m_czml.init());
QJsonObject obj = m_czml.init();
czml(obj);
}
// Send and process CZML
+3 -1
View File
@@ -23,7 +23,7 @@
#include "util/units.h"
CZML::CZML(const MapSettings *settings, QObject *parent) :
CZML::CZML(const MapSettings *settings) :
m_settings(settings)
{
}
@@ -194,6 +194,8 @@ QQuaternion CZML::orientation(double longitude, double latitude, double altitude
QJsonObject CZML::update(MapItem *mapItem, bool isTarget, bool isSelected)
{
(void) isTarget;
// Don't currently use CLIP_TO_GROUND in Cesium due to Jitter bug
// https://github.com/CesiumGS/cesium/issues/4049
// Instead we implement our own clipping code in map3d.html
+1 -1
View File
@@ -38,7 +38,7 @@ private:
QHash<QString, bool> m_hasMoved;
public:
CZML(const MapSettings *settings, QObject *parent = nullptr);
CZML(const MapSettings *settings);
QJsonObject init();
QJsonObject update(MapItem *mapItem, bool isTarget, bool isSelected);
+2
View File
@@ -264,6 +264,8 @@ void MapModel::update(const PipeEndPoint *sourcePipe, SWGSDRangel::SWGMapItem *s
// Slot called on dataChanged signal, to update 3D map
void MapModel::update3DMap(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles)
{
(void) roles;
CesiumInterface *cesium = m_gui->cesium();
if (cesium)
{