Fixed typo, style

This commit is contained in:
Klaus Basan
2019-06-26 23:33:23 +02:00
committed by Mat Sutcliffe
parent f95df7455b
commit 16e19ad6d3
14 changed files with 22 additions and 28 deletions

View File

@@ -130,13 +130,13 @@ namespace BlackMisc
CAltitude switchedUnit(const PhysicalQuantities::CLengthUnit &newUnit) const;
//! AGL Above ground level?
bool isAboveGroundLevel() const { return AboveGround == this->m_datum; }
bool isAboveGroundLevel() const { return AboveGround == m_datum; }
//! MSL Mean sea level?
bool isMeanSeaLevel() const { return MeanSeaLevel == this->m_datum; }
bool isMeanSeaLevel() const { return MeanSeaLevel == m_datum; }
//! Flight level?
bool isFlightLevel() const { return FlightLevel == this->m_datum; }
bool isFlightLevel() const { return FlightLevel == m_datum; }
//! Get reference datum (MSL or AGL)
ReferenceDatum getReferenceDatum() const { return m_datum; }

View File

@@ -134,7 +134,7 @@ namespace BlackMisc
{
static const CLogCategoryList cats(CLogCategoryList(this).withValidation());
CStatusMessageList msgs;
if (!hasValidDbKey()) { msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Distributor: missing id")); }
if (!hasValidDbKey()) { msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Distributor: missing id")); }
if (!hasDescription()) { msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Distributor: missing description")); }
return msgs;
}