mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Ref T223, use const values for standard pressure
* standardISASeaLevelPressure * use static const values for standard pressure * minor formatting
This commit is contained in:
@@ -19,7 +19,6 @@ namespace BlackMisc
|
||||
{
|
||||
namespace PhysicalQuantities
|
||||
{
|
||||
|
||||
/*!
|
||||
* Physical quantities constants
|
||||
*/
|
||||
@@ -43,14 +42,14 @@ namespace BlackMisc
|
||||
//! International Standard Atmosphere pressure at mean sea level, 1013.25hPa
|
||||
static const CPressure &ISASeaLevelPressure()
|
||||
{
|
||||
static CPressure p(1013.25, CPressureUnit::hPa());
|
||||
static CPressure p(1013.25, CPressureUnit::mbar());
|
||||
return p;
|
||||
}
|
||||
|
||||
//! ICAO standard pressure datum for flight levels, 1013.2hPa
|
||||
static const CPressure &ICAOFlightLevelPressure()
|
||||
{
|
||||
static CPressure p(1013.2, CPressureUnit::hPa());
|
||||
static CPressure p(1013.2, CPressureUnit::mbar());
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace BlackMisc
|
||||
//! \copydoc CPhysicalQuantity(const QString &unitString)
|
||||
CPressure(const QString &unitString) : CPhysicalQuantity(unitString) {}
|
||||
};
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::PhysicalQuantities::CPressure)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user