+ use more consise c++11 syntax
This commit is contained in:
parent
b29fe11e35
commit
31a506f3cb
1 changed files with 3 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue