1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 21:01:45 -05:00

WebAPIAdapter: some cleanup

This commit is contained in:
f4exb 2021-10-03 12:39:46 +02:00
parent 59937d9a1c
commit ca931c171f

View File

@ -3757,14 +3757,12 @@ void WebAPIAdapter::getFeatureSetList(SWGSDRangel::SWGFeatureSetList* featureSet
{ {
QList<SWGSDRangel::SWGFeatureSet*> *featureSets = featureSetList->getFeatureSets(); QList<SWGSDRangel::SWGFeatureSet*> *featureSets = featureSetList->getFeatureSets();
featureSets->append(new SWGSDRangel::SWGFeatureSet()); featureSets->append(new SWGSDRangel::SWGFeatureSet());
getFeatureSet(featureSets->back(), *it, i); getFeatureSet(featureSets->back(), *it, i);
} }
} }
void WebAPIAdapter::getFeatureSet(SWGSDRangel::SWGFeatureSet *swgFeatureSet, const FeatureSet* featureSet, int featureSetIndex) void WebAPIAdapter::getFeatureSet(SWGSDRangel::SWGFeatureSet *swgFeatureSet, const FeatureSet* featureSet, int featureSetIndex)
{ {
(void) featureSetIndex; // FIXME: the index should be present in the API FeatureSet structure
swgFeatureSet->init(); swgFeatureSet->init();
swgFeatureSet->setFeaturecount(featureSet->getNumberOfFeatures()); swgFeatureSet->setFeaturecount(featureSet->getNumberOfFeatures());
swgFeatureSet->setIndex(featureSetIndex); swgFeatureSet->setIndex(featureSetIndex);