Ref T385, added propertyBy functions for airport ICAO + style

This commit is contained in:
Klaus Basan
2018-10-07 15:00:47 +02:00
parent 1280359fe1
commit abe363494b
5 changed files with 30 additions and 11 deletions

View File

@@ -260,7 +260,7 @@ namespace BlackMisc
CVariant Index<Derived>::propertyByIndex(const CPropertyIndex &index) const
{
if (index.isMyself()) { return myself<Derived>(); }
const auto i = index.frontCasted<ColumnIndex>();
const auto i = index.frontCasted<ColumnIndex>(); // keep that "auto", otherwise I won's compile
switch (i)
{
case IndexIcon: return CVariant::from(derived()->toIcon());