From 9f28010f5353748296edf86bb48ef1a730bcab1c Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 21 Jan 2013 11:14:32 -0800 Subject: [PATCH] avoid taking const& to a copy (which is what is returned from geom.envelope() currently) --- include/mapnik/feature.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/feature.hpp b/include/mapnik/feature.hpp index d83de558a..352a463c1 100644 --- a/include/mapnik/feature.hpp +++ b/include/mapnik/feature.hpp @@ -235,7 +235,7 @@ public: geometry_type const& geom = get_geometry(i); if (i==0) { - box2d const& box = geom.envelope(); + box2d box = geom.envelope(); result.init(box.minx(),box.miny(),box.maxx(),box.maxy()); } else