mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T709, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
cbd93da1c6
commit
8845d1d35c
@@ -235,7 +235,7 @@ namespace BlackSimPlugin
|
||||
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TXSwiftBusSettings> m_xSwiftBusServerSettings { this, &CSimulatorXPlane::onXSwiftBusSettingsChanged };
|
||||
static constexpr qint64 TimeoutAdding = 10000;
|
||||
QDBusConnection m_dBusConnection { "default" };
|
||||
QDBusServiceWatcher *m_watcher { nullptr };
|
||||
QDBusServiceWatcher *m_watcher { nullptr };
|
||||
CXSwiftBusServiceProxy *m_serviceProxy { nullptr };
|
||||
CXSwiftBusTrafficProxy *m_trafficProxy { nullptr };
|
||||
CXSwiftBusWeatherProxy *m_weatherProxy { nullptr };
|
||||
@@ -310,8 +310,8 @@ namespace BlackSimPlugin
|
||||
virtual BlackCore::ISimulator *create(const BlackMisc::Simulation::CSimulatorPluginInfo &info,
|
||||
BlackMisc::Simulation::IOwnAircraftProvider *ownAircraftProvider,
|
||||
BlackMisc::Simulation::IRemoteAircraftProvider *remoteAircraftProvider,
|
||||
BlackMisc::Weather::IWeatherGridProvider *weatherGridProvider,
|
||||
BlackMisc::Network::IClientProvider *clientProvider) override;
|
||||
BlackMisc::Weather::IWeatherGridProvider *weatherGridProvider,
|
||||
BlackMisc::Network::IClientProvider *clientProvider) override;
|
||||
|
||||
//! \copydoc BlackCore::ISimulatorFactory::createListener
|
||||
virtual BlackCore::ISimulatorListener *createListener(const BlackMisc::Simulation::CSimulatorPluginInfo &info) override { return new CSimulatorXPlaneListener(info); }
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
namespace XSwiftBus
|
||||
{
|
||||
|
||||
CDBusServer::CDBusServer()
|
||||
{
|
||||
dbus_threads_init_default();
|
||||
@@ -78,6 +77,7 @@ namespace XSwiftBus
|
||||
|
||||
void CDBusServer::onNewConnection(DBusServer *, DBusConnection *conn)
|
||||
{
|
||||
// called by listener and the DBus connection for xSwiftBus afterwards
|
||||
INFO_LOG("onNewConnection");
|
||||
auto dbusConnection = std::make_shared<CDBusConnection>(conn);
|
||||
m_newConnectionFunc(dbusConnection);
|
||||
@@ -88,5 +88,4 @@ namespace XSwiftBus
|
||||
auto *obj = static_cast<CDBusServer *>(data);
|
||||
obj->onNewConnection(server, conn);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
|
||||
namespace XSwiftBus
|
||||
{
|
||||
|
||||
class CDBusObject;
|
||||
|
||||
//! DBus connection
|
||||
@@ -38,7 +37,7 @@ namespace XSwiftBus
|
||||
CDBusServer();
|
||||
|
||||
//! Destructor
|
||||
~CDBusServer() override;
|
||||
virtual ~CDBusServer() override;
|
||||
|
||||
//! Set the dispatcher
|
||||
void setDispatcher(CDBusDispatcher *dispatcher);
|
||||
@@ -77,7 +76,6 @@ namespace XSwiftBus
|
||||
CDBusError m_lastError;
|
||||
NewConnectionFunc m_newConnectionFunc;
|
||||
};
|
||||
|
||||
}
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
|
||||
@@ -919,7 +919,7 @@ namespace XSwiftBus
|
||||
cameraPosition->x = static_cast<float>(lx + traffic->m_deltaCameraPosition.dx);
|
||||
cameraPosition->y = static_cast<float>(ly + traffic->m_deltaCameraPosition.dy);
|
||||
cameraPosition->z = static_cast<float>(lz + traffic->m_deltaCameraPosition.dz);
|
||||
cameraPosition->pitch = static_cast<float>(traffic->m_deltaCameraPosition.pitch);
|
||||
cameraPosition->pitch = static_cast<float>(traffic->m_deltaCameraPosition.pitch);
|
||||
cameraPosition->heading = static_cast<float>(traffic->m_deltaCameraPosition.heading);
|
||||
cameraPosition->roll = 0.0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user