mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
refs #707, allow to skip equal values in applyIf
This commit is contained in:
@@ -45,9 +45,9 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
template <class OBJ, class CONTAINER>
|
||||
int ICallsignObjectList<OBJ, CONTAINER>::applyIfCallsign(const CCallsign &callsign, const CPropertyIndexVariantMap &variantMap)
|
||||
int ICallsignObjectList<OBJ, CONTAINER>::applyIfCallsign(const CCallsign &callsign, const CPropertyIndexVariantMap &variantMap, bool skipEqualValues)
|
||||
{
|
||||
return this->container().applyIf(&OBJ::getCallsign, callsign, variantMap);
|
||||
return this->container().applyIf(&OBJ::getCallsign, callsign, variantMap, skipEqualValues);
|
||||
}
|
||||
|
||||
template <class OBJ, class CONTAINER>
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace BlackMisc
|
||||
bool containsCallsign(const BlackMisc::Aviation::CCallsign &callsign) const;
|
||||
|
||||
//! Apply for given callsign
|
||||
int applyIfCallsign(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::CPropertyIndexVariantMap &variantMap);
|
||||
int applyIfCallsign(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::CPropertyIndexVariantMap &variantMap, bool skipEqualValues = true);
|
||||
|
||||
//! All callsigns
|
||||
BlackMisc::Aviation::CCallsignSet getCallsigns() const;
|
||||
|
||||
Reference in New Issue
Block a user