Fixed typo and exit application when parsing fails

This commit is contained in:
Klaus Basan
2016-03-16 23:00:00 +01:00
parent ab33ebe64d
commit d687255ef1
4 changed files with 12 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ namespace BlackCore
private:
//! Bootstrap mode
enum BootsrapMode
enum BootstrapMode
{
Default,
Explicit,
@@ -118,8 +118,8 @@ namespace BlackCore
std::atomic<bool> m_setupSyncronized { false };
std::atomic<bool> m_updateInfoSyncronized { false };
QString m_localSetupFileValue;
QString m_bootsrapUrlFileValue;
BootsrapMode m_bootstrapMode;
QString m_bootstrapUrlFileValue;
BootstrapMode m_bootstrapMode;
BlackMisc::Network::CFailoverUrlList m_bootstrapUrls; //!< location of setup files
BlackMisc::Network::CFailoverUrlList m_updateInfoUrls; //!< location of info files
BlackMisc::CData<BlackCore::Data::GlobalSetup> m_setup {this, &CSetupReader::ps_setupChanged}; //!< data cache setup
@@ -128,7 +128,7 @@ namespace BlackCore
QCommandLineOption m_cmdBootstrapUrl
{
{ "url", "bootstrap-url", "bootstrapurl" },
QCoreApplication::translate("application", "bootsrap URL, e.g. datastore.swift-project.org"),
QCoreApplication::translate("application", "bootstrap URL, e.g. datastore.swift-project.org"),
"bootstrapurl"
}; //!< bootstrap URL
QCommandLineOption m_cmdBootstrapMode
@@ -142,7 +142,7 @@ namespace BlackCore
bool readLocalBootstrapFile(QString &fileName);
//! Convert string to mode
static BootsrapMode stringToEnum(const QString &s);
static BootstrapMode stringToEnum(const QString &s);
};
} // ns