mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Style
This commit is contained in:
@@ -54,12 +54,12 @@ namespace BlackCore
|
|||||||
|
|
||||||
CUrlList CVatsimStatusFileReader::getMetarFileUrls() const
|
CUrlList CVatsimStatusFileReader::getMetarFileUrls() const
|
||||||
{
|
{
|
||||||
return this->m_lastGoodSetup.get().getMetarFileUrls();
|
return m_lastGoodSetup.get().getMetarFileUrls();
|
||||||
}
|
}
|
||||||
|
|
||||||
CUrlList CVatsimStatusFileReader::getDataFileUrls() const
|
CUrlList CVatsimStatusFileReader::getDataFileUrls() const
|
||||||
{
|
{
|
||||||
return this->m_lastGoodSetup.get().getDataFileUrls();
|
return m_lastGoodSetup.get().getDataFileUrls();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CVatsimStatusFileReader::ps_read()
|
void CVatsimStatusFileReader::ps_read()
|
||||||
@@ -144,12 +144,12 @@ namespace BlackCore
|
|||||||
} // for each line
|
} // for each line
|
||||||
|
|
||||||
// cache itself is thread safe, avoid writing with unchanged data
|
// cache itself is thread safe, avoid writing with unchanged data
|
||||||
CVatsimSetup vs(this->m_lastGoodSetup.get());
|
CVatsimSetup vs(m_lastGoodSetup.get());
|
||||||
const bool changed = vs.setUrls(dataFileUrls, serverFileUrls, metarFileUrls);
|
const bool changed = vs.setUrls(dataFileUrls, serverFileUrls, metarFileUrls);
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
vs.setUtcTimestamp(QDateTime::currentDateTime());
|
vs.setUtcTimestamp(QDateTime::currentDateTime());
|
||||||
const CStatusMessage cacheMsg = this->m_lastGoodSetup.set(vs);
|
const CStatusMessage cacheMsg = m_lastGoodSetup.set(vs);
|
||||||
if (cacheMsg.isFailure()) { CLogMessage::preformatted(cacheMsg); }
|
if (cacheMsg.isFailure()) { CLogMessage::preformatted(cacheMsg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
namespace XSwiftBus
|
namespace XSwiftBus
|
||||||
{
|
{
|
||||||
|
|
||||||
//! Case insensitive string compare
|
//! Case insensitive string compare
|
||||||
bool stringCompare(const std::string & str1, const std::string &str2)
|
bool stringCompare(const std::string & str1, const std::string &str2)
|
||||||
{
|
{
|
||||||
@@ -102,7 +101,6 @@ namespace XSwiftBus
|
|||||||
|
|
||||||
bool CConfig::parseDBusAddress(const std::string &value)
|
bool CConfig::parseDBusAddress(const std::string &value)
|
||||||
{
|
{
|
||||||
|
|
||||||
m_dbusAddress = value;
|
m_dbusAddress = value;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -134,5 +132,4 @@ namespace XSwiftBus
|
|||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
Reference in New Issue
Block a user