summaryrefslogtreecommitdiff
path: root/src/lib/upnp/Discovery.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-08-25 10:11:35 +0200
committerMax Kellermann <max@musicpd.org>2017-08-25 10:11:35 +0200
commitd0734e27ba3adfed453af0f3f40d7a655f046463 (patch)
treeb7b492a439269c666f0c137feaf812141805c4e2 /src/lib/upnp/Discovery.cxx
parent732f6aaa307fd2fc1eb5f14c0388bc578e0f1bfe (diff)
lib/upnp/Discovery: use range-based "for"
Diffstat (limited to 'src/lib/upnp/Discovery.cxx')
-rw-r--r--src/lib/upnp/Discovery.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/upnp/Discovery.cxx b/src/lib/upnp/Discovery.cxx
index 675e43239..752eb8c71 100644
--- a/src/lib/upnp/Discovery.cxx
+++ b/src/lib/upnp/Discovery.cxx
@@ -313,11 +313,10 @@ UPnPDeviceDirectory::GetDirectories()
ExpireDevices();
std::vector<ContentDirectoryService> out;
- for (auto dit = directories.begin();
- dit != directories.end(); dit++) {
- for (const auto &service : dit->device.services) {
+ for (const auto &descriptor : directories) {
+ for (const auto &service : descriptor.device.services) {
if (isCDService(service.serviceType.c_str())) {
- out.emplace_back(dit->device, service);
+ out.emplace_back(descriptor.device, service);
}
}
}