mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-05 08:55:59 +08:00
refactor: Fix readability-use-std-min-max
This commit is contained in:
@@ -821,7 +821,7 @@ namespace swift::simplugin::flightgear
|
||||
const qint64 wasStartedMs = m_addingInProgressAircraft.value(cs);
|
||||
const qint64 deltaTimeMs = QDateTime::currentMSecsSinceEpoch() - wasStartedMs;
|
||||
m_statsAddCurrentTimeMs = deltaTimeMs;
|
||||
if (deltaTimeMs > m_statsAddMaxTimeMs) { m_statsAddMaxTimeMs = deltaTimeMs; }
|
||||
m_statsAddMaxTimeMs = std::max(deltaTimeMs, m_statsAddMaxTimeMs);
|
||||
m_addingInProgressAircraft.remove(cs);
|
||||
}
|
||||
|
||||
|
||||
@@ -1171,7 +1171,7 @@ namespace swift::simplugin::xplane
|
||||
const qint64 wasStartedMs = m_addingInProgressAircraft.value(cs);
|
||||
const qint64 deltaTimeMs = QDateTime::currentMSecsSinceEpoch() - wasStartedMs;
|
||||
m_statsAddCurrentTimeMs = deltaTimeMs;
|
||||
if (deltaTimeMs > m_statsAddMaxTimeMs) { m_statsAddMaxTimeMs = deltaTimeMs; }
|
||||
m_statsAddMaxTimeMs = std::max(deltaTimeMs, m_statsAddMaxTimeMs);
|
||||
m_addingInProgressAircraft.remove(cs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user