fix -Wshadow warning
This commit is contained in:
parent
ebfc3161c1
commit
771e2f3d8e
1 changed files with 5 additions and 5 deletions
|
@ -372,7 +372,7 @@ boost::optional<mapnik::datasource::geometry_t> ogr_datasource::get_geometry_typ
|
||||||
// TODO - csv and shapefile inspect first 4 features
|
// TODO - csv and shapefile inspect first 4 features
|
||||||
if (dataset_ && layer_.is_valid())
|
if (dataset_ && layer_.is_valid())
|
||||||
{
|
{
|
||||||
OGRLayer* layer = layer_.layer();
|
layer = layer_.layer();
|
||||||
// only new either reset of setNext
|
// only new either reset of setNext
|
||||||
//layer->ResetReading();
|
//layer->ResetReading();
|
||||||
layer->SetNextByIndex(0);
|
layer->SetNextByIndex(0);
|
||||||
|
@ -449,11 +449,11 @@ void validate_attribute_names(query const& q, std::vector<attribute_descriptor>
|
||||||
{
|
{
|
||||||
std::ostringstream s("OGR Plugin: no attribute '");
|
std::ostringstream s("OGR Plugin: no attribute '");
|
||||||
s << *pos << "'. Valid attributes are: ";
|
s << *pos << "'. Valid attributes are: ";
|
||||||
std::vector<attribute_descriptor>::const_iterator itr = names.begin();
|
std::vector<attribute_descriptor>::const_iterator e_itr = names.begin();
|
||||||
std::vector<attribute_descriptor>::const_iterator end = names.end();
|
std::vector<attribute_descriptor>::const_iterator e_end = names.end();
|
||||||
for ( ;itr!=end;++itr)
|
for ( ;e_itr!=e_end;++e_itr)
|
||||||
{
|
{
|
||||||
s << itr->get_name() << std::endl;
|
s << e_itr->get_name() << std::endl;
|
||||||
}
|
}
|
||||||
throw mapnik::datasource_exception(s.str());
|
throw mapnik::datasource_exception(s.str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue