mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-06 09:16:30 +08:00
refactor: Remove redundant CVariant functions
This commit is contained in:
@@ -69,7 +69,7 @@ namespace swift::sample
|
||||
atcList.push_back(station1);
|
||||
CAtcStation station1Cpy(station1);
|
||||
CFrequency changedFrequency(118.25, CFrequencyUnit::MHz());
|
||||
CPropertyIndexVariantMap vm(CAtcStation::IndexFrequency, CVariant::from(changedFrequency));
|
||||
CPropertyIndexVariantMap vm(CAtcStation::IndexFrequency, CVariant::fromValue(changedFrequency));
|
||||
|
||||
// demonstration apply
|
||||
CPropertyIndexList changedProperties;
|
||||
|
||||
Reference in New Issue
Block a user