mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Metar, slight style adjustments
This commit is contained in:
committed by
Mat Sutcliffe
parent
a924b5e78b
commit
a6a787fdd7
@@ -136,11 +136,17 @@ namespace BlackCore
|
||||
// some check for obvious errors
|
||||
if (line.contains("<html")) { continue; }
|
||||
const CMetar metar = m_metarDecoder.decode(line);
|
||||
if (metar != CMetar()) { metars.push_back(metar); }
|
||||
else { invalidLines++; }
|
||||
if (metar != CMetar())
|
||||
{
|
||||
metars.push_back(metar);
|
||||
}
|
||||
else
|
||||
{
|
||||
invalidLines++;
|
||||
}
|
||||
}
|
||||
|
||||
CLogMessage(this).info(u"METARs: %1 Metars (invalid %2) from '%3'" )<< metars.size() << invalidLines << metarUrl;
|
||||
CLogMessage(this).info(u"METARs: %1 Metars (invalid %2) from '%3'") << metars.size() << invalidLines << metarUrl;
|
||||
{
|
||||
QWriteLocker l(&m_lock);
|
||||
m_metars = metars;
|
||||
|
||||
Reference in New Issue
Block a user