mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
Restored constexpr initialization and return-by-value of CMeasurementUnit constants
that were removed by commit787b54108e. For rationale, see the commitsfef2bc528e,c8d78ada65,07ec7e6bc1where these were originally introduced.
This commit is contained in:
@@ -460,7 +460,7 @@ namespace BlackMisc
|
||||
//! Dimensionless unit
|
||||
static CMeasurementUnit None()
|
||||
{
|
||||
static Q_CONSTEXPR CMeasurementUnit::Data none(constQLatin1("none"), constQLatin1(""), NilConverter(), 0, 0);
|
||||
static constexpr CMeasurementUnit::Data none(constQLatin1("none"), constQLatin1(""), NilConverter(), 0, 0);
|
||||
return none;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user