Ref T242, null functions for livery, airline, aircraft

This commit is contained in:
Klaus Basan
2018-02-07 05:23:25 +01:00
parent e001b0338f
commit 33d4cf82ea
6 changed files with 51 additions and 0 deletions

View File

@@ -423,5 +423,16 @@ namespace BlackMisc
}
return score;
}
bool CLivery::isNull() const
{
return m_airline.isNull() && m_combinedCode.isEmpty() && m_description.isEmpty();
}
const CLivery &CLivery::null()
{
static const CLivery null;
return null;
}
} // namespace
} // namespace