+ use more consise c++11 syntax

This commit is contained in:
artemp 2013-05-06 15:52:04 +01:00
parent b29fe11e35
commit 31a506f3cb

View file

@ -99,14 +99,13 @@ osm_datasource::osm_datasource(const parameters& params)
// Add the attributes to the datasource descriptor - assume they are
// all of type String
for (std::set<std::string>::iterator i = keys.begin(); i != keys.end(); i++)
for (auto const& key : keys)
{
desc_.add_descriptor(attribute_descriptor(*i, tagtypes.get_type(*i)));
desc_.add_descriptor(attribute_descriptor(key, tagtypes.get_type(key)));
}
// Get the bounds of the data and set extent_ accordingly
bounds b = osm_data_->get_bounds();
extent_ = box2d<double>(b.w, b.s, b.e, b.n);
extent_ = box2d<double>(b.w,b.s,b.e,b.n);
}
osm_datasource::~osm_datasource()