refs #879, added ctor for CSimulatedAircraft / CPropertyIndexVariantMap::size()

This commit is contained in:
Klaus Basan
2017-02-12 22:33:16 +01:00
committed by Mathew Sutcliffe
parent 9b56c5bf51
commit 5bea0e2a96
4 changed files with 19 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ namespace BlackMisc
{
if (this->isEmpty()) return QString("{wildcard: %1}").arg(this->m_wildcard ? "true" : "false");
QString s;
foreach(CPropertyIndex index, this->m_values.keys())
foreach (CPropertyIndex index, this->m_values.keys())
{
CVariant v = this->m_values.value(index);
@@ -120,6 +120,11 @@ namespace BlackMisc
return CPropertyIndexList::fromImpl(this->m_values.keys());
}
int CPropertyIndexVariantMap::size() const
{
return this->m_values.size();
}
uint CPropertyIndexVariantMap::getValueHash() const
{
// there is no hash for map, so I use this workaround here