Formatting, typos

This commit is contained in:
Klaus Basan
2015-11-01 21:09:55 +01:00
committed by Mathew Sutcliffe
parent 15b8363e30
commit 23b310ac9b
7 changed files with 7 additions and 10 deletions

View File

@@ -137,7 +137,7 @@ namespace BlackCore
bool m_dbDebugFlag = false; //!< can trigger DEBUG on the server, so you need to know hat you are doing
};
//! Trait for for global setup data
//! Trait for global setup data
struct GlobalSetup : public BlackCore::CDataTrait<CGlobalSetup>
{
//! Key in data cache
@@ -146,8 +146,8 @@ namespace BlackCore
//! Default value
static const CGlobalSetup &defaultValue()
{
static const CGlobalSetup urls;
return urls;
static const CGlobalSetup gs;
return gs;
}
};

View File

@@ -33,10 +33,9 @@ namespace BlackGui
QWidgetList tlw = topLevelApplicationWidgetsWithName();
for (QWidget *w : tlw)
{
// best coice is to check on frameless window
// best choice is to check on frameless window
CEnableForFramelessWindow *mw = dynamic_cast<CEnableForFramelessWindow *>(w);
if (mw && mw->isMainApplicationWindow()) { return mw; }
}
return nullptr;
}

View File

@@ -219,6 +219,5 @@ namespace BlackMisc
CNetworkUtils::ignoreSslVerification(request);
return request;
}
} // namespace
} // namespacee

View File

@@ -99,7 +99,7 @@ namespace BlackMisc
static QNetworkRequest getNetworkRequest(const CUrl &url, RequestType type = Get);
private:
//! Deleted constructor
//! Hidden constructor
CNetworkUtils() {}
};

View File

@@ -37,7 +37,6 @@ namespace BlackMisc
//! Construct from a base class object.
CUserList(const CSequence &other);
};
} //namespace

View File

@@ -35,7 +35,7 @@ namespace BlackMisc
bool success = this->m_vPilotReader->read(false);
if (success)
{
this->m_datastoreModels = this->m_vPilotReader->getRules().toAircraftModels();
this->m_datastoreModels = this->m_vPilotReader->getRules().toAircraftModels();
}
return success;
}

View File

@@ -99,7 +99,7 @@ namespace BlackMisc
int m_loadedFiles = 0; //!< loaded files
CVPilotModelRuleSet m_rules; //!< rules list
bool m_asyncLoadInProgress = false; //!< Asynchronous load in progress
bool m_shutdown = false; //!< Shutdown
bool m_shutdown = false; //!< Shutdown
mutable BlackMisc::Simulation::CAircraftModelList m_models; //!< converted to models
mutable QReadWriteLock m_lockData;