mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #207, renamed CValueMap to CIndexVariantMap.
* The map will be used with CSimulaorInfo to transfer a variable number of setting information about the flight simulator. It is being used, because it is already DBus and tupel compliant. The new name better fits its purpose. * Add == operator for CIndexVariantMap (ambiguity error with tupels)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#define BLACKMISC_CONTAINERBASE_H
|
||||
|
||||
#include "valueobject.h"
|
||||
#include "valuemap.h"
|
||||
#include "indexvariantmap.h"
|
||||
#include "predicates.h"
|
||||
#include "json.h"
|
||||
#include <algorithm>
|
||||
@@ -93,7 +93,7 @@ namespace BlackMisc
|
||||
/*!
|
||||
* \brief Return a copy containing only those elements matching a given value map.
|
||||
*/
|
||||
C<T> findBy(const CValueMap &valueMap) const
|
||||
C<T> findBy(const CIndexVariantMap &valueMap) const
|
||||
{
|
||||
return findBy([ & ](const T & value) { return value == valueMap; });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user