use STL algorithms
This commit is contained in:
parent
2e377e876a
commit
6f9a5dcd0b
1 changed files with 2 additions and 4 deletions
|
@ -418,10 +418,8 @@ void csv_datasource::parse_csv(T & stream,
|
||||||
|
|
||||||
std::size_t num_headers = headers_.size();
|
std::size_t num_headers = headers_.size();
|
||||||
|
|
||||||
for (std::size_t i = 0; i < headers_.size(); ++i)
|
std::for_each(headers_.begin(), headers_.end(),
|
||||||
{
|
[ & ](std::string const& header){ ctx_->push(header); });
|
||||||
ctx_->push(headers_[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
mapnik::transcoder tr(desc_.get_encoding());
|
mapnik::transcoder tr(desc_.get_encoding());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue