mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
refactor: Fix remaining modernize- warnings
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "simulatorxplane.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <QColor>
|
||||
#include <QDBusServiceWatcher>
|
||||
@@ -267,7 +267,11 @@ namespace swift::simplugin::xplane
|
||||
}
|
||||
|
||||
using namespace std::placeholders;
|
||||
auto callback = std::bind(&CSimulatorXPlane::callbackReceivedRequestedElevation, this, _1, _2, _3);
|
||||
auto callback = [this](auto &&plane, auto &&callsign, auto &&isWater) {
|
||||
callbackReceivedRequestedElevation(std::forward<decltype(plane)>(plane),
|
||||
std::forward<decltype(callsign)>(callsign),
|
||||
std::forward<decltype(isWater)>(isWater));
|
||||
};
|
||||
|
||||
// Request
|
||||
m_trafficProxy->getElevationAtPosition(callsign, pos.latitude().value(CAngleUnit::deg()),
|
||||
|
||||
Reference in New Issue
Block a user