lib/upnp/Discovery: use range-based "for"
This commit is contained in:
parent
732f6aaa30
commit
d0734e27ba
|
@ -313,11 +313,10 @@ UPnPDeviceDirectory::GetDirectories()
|
||||||
ExpireDevices();
|
ExpireDevices();
|
||||||
|
|
||||||
std::vector<ContentDirectoryService> out;
|
std::vector<ContentDirectoryService> out;
|
||||||
for (auto dit = directories.begin();
|
for (const auto &descriptor : directories) {
|
||||||
dit != directories.end(); dit++) {
|
for (const auto &service : descriptor.device.services) {
|
||||||
for (const auto &service : dit->device.services) {
|
|
||||||
if (isCDService(service.serviceType.c_str())) {
|
if (isCDService(service.serviceType.c_str())) {
|
||||||
out.emplace_back(dit->device, service);
|
out.emplace_back(descriptor.device, service);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue