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