mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
Formatting, typos
This commit is contained in:
committed by
Mathew Sutcliffe
parent
6d11ea2435
commit
fe01a9d4aa
@@ -826,23 +826,23 @@ namespace BlackCore
|
||||
|
||||
// dev. system
|
||||
m_cmdDevelopment = QCommandLineOption({ "dev", "development" },
|
||||
QCoreApplication::translate("application", "Dev. system features?"));
|
||||
QCoreApplication::translate("application", "Dev. system features?"));
|
||||
this->addParserOption(m_cmdDevelopment);
|
||||
|
||||
// can read a local bootstrap file
|
||||
m_cmdSharedDir = QCommandLineOption({ "shared", "shareddir" },
|
||||
QCoreApplication::translate("application", "Local shared directory."),
|
||||
"shared");
|
||||
QCoreApplication::translate("application", "Local shared directory."),
|
||||
"shared");
|
||||
this->addParserOption(m_cmdSharedDir);
|
||||
|
||||
// reset caches upfront
|
||||
m_cmdClearCache = QCommandLineOption({ "ccache", "clearcache" },
|
||||
QCoreApplication::translate("application", "Clear (reset) the caches."));
|
||||
QCoreApplication::translate("application", "Clear (reset) the caches."));
|
||||
this->addParserOption(m_cmdClearCache);
|
||||
|
||||
// test crashpad upload
|
||||
m_cmdTestCrashpad = QCommandLineOption({ "testcp", "testcrashpad" },
|
||||
QCoreApplication::translate("application", "Simulate crashpad situation."));
|
||||
QCoreApplication::translate("application", "Simulate crashpad situation."));
|
||||
this->addParserOption(m_cmdTestCrashpad);
|
||||
}
|
||||
|
||||
@@ -1007,8 +1007,8 @@ namespace BlackCore
|
||||
void CApplication::addDBusAddressOption()
|
||||
{
|
||||
m_cmdDBusAddress = QCommandLineOption({ "dbus", "dbusaddress" },
|
||||
QCoreApplication::translate("application", "DBus address (session, system, P2P IP e.g. 192.168.23.5)"),
|
||||
"dbusaddress");
|
||||
QCoreApplication::translate("application", "DBus address (session, system, P2P IP e.g. 192.168.23.5)"),
|
||||
"dbusaddress");
|
||||
this->addParserOption(m_cmdDBusAddress);
|
||||
}
|
||||
|
||||
|
||||
@@ -252,9 +252,9 @@ namespace BlackCore
|
||||
//! \return all cache files
|
||||
static QStringList clearCaches();
|
||||
|
||||
// ----------------------- parsing ----------------------------------------
|
||||
// ----------------------- cmd line args / parsing ----------------------------------------
|
||||
|
||||
//! \name parsing of command line options
|
||||
//! \name cmd line args and parsing of command line options
|
||||
//! @{
|
||||
|
||||
//! \copydoc QCommandLineParser::addOption
|
||||
@@ -318,10 +318,12 @@ namespace BlackCore
|
||||
|
||||
//! Init the contexts part and start core facade
|
||||
//! \sa coreFacadeStarted
|
||||
//! \remark requires setup loaded
|
||||
BlackMisc::CStatusMessageList useContexts(const CCoreFacadeConfig &coreConfig);
|
||||
|
||||
//! Init web data services and start them
|
||||
//! \sa webDataServicesStarted
|
||||
//! \remark requires setup loaded
|
||||
BlackMisc::CStatusMessageList useWebDataServices(const CWebReaderFlags::WebReader webReader, const BlackCore::Db::CDatabaseReaderConfigList &dbReaderConfig);
|
||||
|
||||
//! Get the facade
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace BlackCore
|
||||
BlackMisc::Simulation::Data::CModelSetCaches m_modelSetCaches { false, this }; //!< caches
|
||||
QMap<QString, QDateTime> m_dbModelsLatestChange;
|
||||
|
||||
//! Do the udpate checks
|
||||
//! Do the update checks
|
||||
void doWork();
|
||||
|
||||
//! Read of new DB data
|
||||
|
||||
@@ -230,7 +230,7 @@ namespace BlackCore
|
||||
QScopedPointer<QNetworkReply, QScopedPointerDeleteLater> nwReply(nwReplyPtr);
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
|
||||
CDatabaseReader::JsonDatastoreResponse res = this->setStatusAndTransformReplyIntoDatastoreResponse(nwReply.data());
|
||||
const CDatabaseReader::JsonDatastoreResponse res = this->setStatusAndTransformReplyIntoDatastoreResponse(nwReply.data());
|
||||
if (res.hasErrorMessage())
|
||||
{
|
||||
CLogMessage::preformatted(res.lastWarningOrAbove());
|
||||
@@ -280,7 +280,7 @@ namespace BlackCore
|
||||
QScopedPointer<QNetworkReply, QScopedPointerDeleteLater> nwReply(nwReplyPtr);
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
|
||||
CDatabaseReader::JsonDatastoreResponse res = this->setStatusAndTransformReplyIntoDatastoreResponse(nwReply.data());
|
||||
const CDatabaseReader::JsonDatastoreResponse res = this->setStatusAndTransformReplyIntoDatastoreResponse(nwReply.data());
|
||||
if (res.hasErrorMessage())
|
||||
{
|
||||
CLogMessage::preformatted(res.lastWarningOrAbove());
|
||||
@@ -328,7 +328,7 @@ namespace BlackCore
|
||||
void CIcaoDataReader::ps_parseCountryData(QNetworkReply *nwReplyPtr)
|
||||
{
|
||||
QScopedPointer<QNetworkReply, QScopedPointerDeleteLater> nwReply(nwReplyPtr);
|
||||
CDatabaseReader::JsonDatastoreResponse res = this->setStatusAndTransformReplyIntoDatastoreResponse(nwReply.data());
|
||||
const CDatabaseReader::JsonDatastoreResponse res = this->setStatusAndTransformReplyIntoDatastoreResponse(nwReply.data());
|
||||
if (res.hasErrorMessage())
|
||||
{
|
||||
CLogMessage::preformatted(res.lastWarningOrAbove());
|
||||
|
||||
Reference in New Issue
Block a user