mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Fixed XPlane plugin warnings / issues
I came across when first compiling master with latest classes on my place VC2013
This commit is contained in:
@@ -234,6 +234,7 @@ namespace BlackSimPlugin
|
||||
void CSimulatorXPlane::addRemoteAircraft(const BlackMisc::Aviation::CCallsign &callsign, const QString &type,
|
||||
const BlackMisc::Aviation::CAircraftSituation &initialSituation)
|
||||
{
|
||||
Q_UNUSED(initialSituation); // fixed gcc warning
|
||||
if (! isConnected()) { return; }
|
||||
m_traffic->addPlane(callsign.asString(), type, "YYY", "YYY"); // TODO livery
|
||||
//addAircraftSituation(callsign, initialSituation);
|
||||
|
||||
@@ -84,6 +84,8 @@ namespace XBus
|
||||
|
||||
int CTraffic::preferences(const char *section, const char *name, int def)
|
||||
{
|
||||
Q_UNUSED(name);
|
||||
Q_UNUSED(section);
|
||||
// TODO [planes] max_full_count
|
||||
return def;
|
||||
}
|
||||
@@ -91,6 +93,8 @@ namespace XBus
|
||||
float CTraffic::preferences(const char *section, const char *name, float def)
|
||||
{
|
||||
// TODO [planes] full_distance
|
||||
Q_UNUSED(name);
|
||||
Q_UNUSED(section);
|
||||
return def;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "datarefs.h"
|
||||
#include <QObject>
|
||||
#include <QHash>
|
||||
#include "XPMPMultiplayer.h"
|
||||
#include "include/XPMPMultiplayer.h"
|
||||
|
||||
//! \cond PRIVATE
|
||||
#define XBUS_TRAFFIC_INTERFACENAME "net.vatsim.xbus.traffic"
|
||||
|
||||
Reference in New Issue
Block a user