+ avoid copying feature_ptr during r-tree initialisation

This commit is contained in:
artemp 2013-09-30 11:36:04 +01:00
parent d116ca062f
commit b3948e4a9c

View file

@ -140,7 +140,7 @@ geojson_datasource::geojson_datasource(parameters const& params)
bool first = true; bool first = true;
std::size_t count=0; std::size_t count=0;
for (mapnik::feature_ptr f : features_) for (mapnik::feature_ptr const& f : features_)
{ {
mapnik::box2d<double> const& box = f->envelope(); mapnik::box2d<double> const& box = f->envelope();
if (first) if (first)