mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #879, added ctor for CSimulatedAircraft / CPropertyIndexVariantMap::size()
This commit is contained in:
committed by
Mathew Sutcliffe
parent
9b56c5bf51
commit
5bea0e2a96
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user