mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -05:00
WebAPIAdapter: some cleanup
This commit is contained in:
parent
59937d9a1c
commit
ca931c171f
@ -3757,14 +3757,12 @@ void WebAPIAdapter::getFeatureSetList(SWGSDRangel::SWGFeatureSetList* featureSet
|
||||
{
|
||||
QList<SWGSDRangel::SWGFeatureSet*> *featureSets = featureSetList->getFeatureSets();
|
||||
featureSets->append(new SWGSDRangel::SWGFeatureSet());
|
||||
|
||||
getFeatureSet(featureSets->back(), *it, i);
|
||||
}
|
||||
}
|
||||
|
||||
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->setFeaturecount(featureSet->getNumberOfFeatures());
|
||||
swgFeatureSet->setIndex(featureSetIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user