refactor: Fix remaining modernize- warnings

This commit is contained in:
Lars Toenning
2025-10-25 15:48:35 +02:00
parent 4e6a6887f1
commit 369450107b
46 changed files with 545 additions and 468 deletions

View File

@@ -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()),