refs #434 CPropertyIndexVariantMap: removed operator templates and replaced CVariant comparison operators with a named method, matches().

This commit is contained in:
Mathew Sutcliffe
2015-06-01 21:06:43 +01:00
parent e76015004b
commit ada03ee513
5 changed files with 35 additions and 52 deletions

View File

@@ -70,7 +70,7 @@ namespace BlackMiscTest
// now Jane's time is over
CPropertyIndexVariantMap anotherController;
anotherController.addValue(CAtcStation::IndexController, CVariant::fromValue(CUser("445566", "Fuzzy")));
atcList.applyIf(BlackMisc::Predicates::Equals(newController), anotherController);
atcList.applyIf(BlackMisc::Predicates::Matches(newController), anotherController);
qDebug() << "-- after update via value map";
qDebug() << atcList.toQString();