mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T778, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
12403700ea
commit
b5d100b71b
@@ -81,7 +81,7 @@ namespace BlackMisc
|
||||
|
||||
int IOrderable::comparePropertyByIndex(const CPropertyIndex &index, const IOrderable &compareValue) const
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
static const int max = std::numeric_limits<int>::max();
|
||||
const int o1 = this->hasValidOrder() ? this->getOrder() : max;
|
||||
const int o2 = compareValue.hasValidOrder() ? compareValue.getOrder() : max;
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace BlackSimPlugin
|
||||
reply.waitForFinished();
|
||||
if (reply.isError())
|
||||
{
|
||||
BlackMisc::CLogMessage(this).debug(u"CXSwiftBusTrafficProxy::acquireMultiplayerPlanes returned: %1") << reply.error().message();
|
||||
CLogMessage(this).debug(u"CXSwiftBusTrafficProxy::acquireMultiplayerPlanes returned: %1") << reply.error().message();
|
||||
}
|
||||
MultiplayerAcquireInfo info;
|
||||
info.hasAcquired = reply.argumentAt<0>();
|
||||
@@ -180,10 +180,10 @@ namespace BlackSimPlugin
|
||||
if (!reply.isError())
|
||||
{
|
||||
const CCallsign cs(reply.argumentAt<0>());
|
||||
const double elevationMeters = reply.argumentAt<1>();
|
||||
const double latitudeDegrees = reply.argumentAt<2>();
|
||||
const double elevationMeters = reply.argumentAt<1>();
|
||||
const double latitudeDegrees = reply.argumentAt<2>();
|
||||
const double longitudeDegrees = reply.argumentAt<3>();
|
||||
const CAltitude elevationAlt = std::isnan(elevationMeters) ? CAltitude::null() : CAltitude(elevationMeters, CLengthUnit::m(), CLengthUnit::ft());
|
||||
const CAltitude elevationAlt = std::isnan(elevationMeters) ? CAltitude::null() : CAltitude(elevationMeters, CLengthUnit::m(), CLengthUnit::ft());
|
||||
const CElevationPlane elevation(CLatitude(latitudeDegrees, CAngleUnit::deg()),
|
||||
CLongitude(longitudeDegrees, CAngleUnit::deg()),
|
||||
elevationAlt, CElevationPlane::singlePointRadius());
|
||||
|
||||
@@ -791,12 +791,12 @@ namespace XSwiftBus
|
||||
}
|
||||
else if (message.getMethodName() == "getRemoteAircraftData")
|
||||
{
|
||||
std::vector<std::string> requestedcallsigns;
|
||||
std::vector<std::string> requestedCallsigns;
|
||||
message.beginArgumentRead();
|
||||
message.getArgument(requestedcallsigns);
|
||||
message.getArgument(requestedCallsigns);
|
||||
queueDBusCall([ = ]()
|
||||
{
|
||||
std::vector<std::string> callsigns = requestedcallsigns;
|
||||
std::vector<std::string> callsigns = requestedCallsigns;
|
||||
std::vector<double> latitudesDeg;
|
||||
std::vector<double> longitudesDeg;
|
||||
std::vector<double> elevationsM;
|
||||
|
||||
Reference in New Issue
Block a user