use STL algorithms

This commit is contained in:
artemp 2015-06-01 13:58:37 +01:00
parent 2e377e876a
commit 6f9a5dcd0b

View file

@ -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());