mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
incidental refactoring: simplify some predicates by templating their call operators
This commit is contained in:
@@ -59,7 +59,7 @@ namespace BlackMiscTest
|
||||
CIndexVariantMap newController;
|
||||
newController.addValue(CAtcStation::IndexController, QVariant::fromValue(CUser("112233", "Jane Doe")));
|
||||
atcList.applyIf(
|
||||
BlackMisc::Predicates::MemberEqual<CAtcStation>(&CAtcStation::getCallsign, CCallsign("eddm_twr")),
|
||||
BlackMisc::Predicates::MemberEqual(&CAtcStation::getCallsign, CCallsign("eddm_twr")),
|
||||
newController);
|
||||
qDebug() << "-- after update via predicates";
|
||||
qDebug() << atcList.toQString();
|
||||
|
||||
Reference in New Issue
Block a user