Style, removed redundant CForm overrides

This commit is contained in:
Klaus Basan
2018-08-04 23:39:32 +02:00
parent b4f39f6226
commit b671c2a0a5
19 changed files with 29 additions and 37 deletions

View File

@@ -448,6 +448,9 @@ namespace BlackMisc
class BLACKMISC_EXPORT CRemoteAircraftAware : public IProviderAware<IRemoteAircraftProvider>
{
public:
//! Destructor
virtual ~CRemoteAircraftAware() {}
//! \copydoc IRemoteAircraftProvider::getAircraftInRange
CSimulatedAircraftList getAircraftInRange() const;

View File

@@ -32,10 +32,8 @@ namespace BlackMisc
const ColumnIndex i = index.frontCasted<ColumnIndex>();
switch (i)
{
case IndexAllowExclude:
return CVariant::fromValue(this->m_allowExcludeModels);
default:
return CValueObject::propertyByIndex(index);
case IndexAllowExclude: return CVariant::fromValue(this->m_allowExcludeModels);
default: return CValueObject::propertyByIndex(index);
}
}
@@ -45,12 +43,8 @@ namespace BlackMisc
const ColumnIndex i = index.frontCasted<ColumnIndex>();
switch (i)
{
case IndexAllowExclude:
this->setAllowExcludedModels(variant.toBool());
break;
default:
CValueObject::setPropertyByIndex(index, variant);
break;
case IndexAllowExclude: this->setAllowExcludedModels(variant.toBool()); break;
default: CValueObject::setPropertyByIndex(index, variant); break;
}
}
} // ns