Skip to content

Commit

Permalink
WIFI-14257: fix can not get corrent deviceTypes from AppServiceRegistry
Browse files Browse the repository at this point in the history
Signed-off-by: MBW <[email protected]>
  • Loading branch information
kerwinma-git committed Nov 6, 2024
1 parent a549024 commit 342c690
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/framework/AppServiceRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ namespace OpenWifi {

bool Get(const char *key, std::vector<std::string> &Value) {
if(Registry_->has(key) && !Registry_->isNull(key) && Registry_->isArray(key)) {
auto Arr = Registry_->get(key);
for(const auto &v:Arr) {
Value.emplace_back(v);
auto pArr = Registry_->getArray(key);
for(const auto &v : *pArr) {
Value.emplace_back(v.toString());
}
return true;
}
Expand All @@ -91,4 +91,4 @@ namespace OpenWifi {

inline auto AppServiceRegistry() { return AppServiceRegistry::instance(); }

} // namespace OpenWifi
} // namespace OpenWifi

0 comments on commit 342c690

Please sign in to comment.