mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Use std::as_const (C++17 feature)
This commit is contained in:
@@ -169,7 +169,7 @@ namespace BlackCore
|
||||
const WeatherRequest weatherRequest = m_pendingRequests.constFirst();
|
||||
const CLength maxDistance(100.0, CLengthUnit::km());
|
||||
|
||||
for (IWeatherData *plugin : as_const(m_weatherDataPlugins))
|
||||
for (IWeatherData *plugin : std::as_const(m_weatherDataPlugins))
|
||||
{
|
||||
if (!plugin) { continue; }
|
||||
if (weatherRequest.filePath.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user