- for (vector<pair<string, string> >::const_iterator j = mounted_devices.begin(); j != mounted_devices.end(); ++j) {
- if (boost::algorithm::starts_with(j->first, "/dev/" + name)) {
- mount_points.push_back (j->second);
+ for (auto const& j: mounted_devices) {
+ if (boost::algorithm::starts_with(j.first, "/dev/" + name)) {
+ mount_points.push_back (j.second);