From 4e160acc880c96d3387de9824a6a275ba22dc78c Mon Sep 17 00:00:00 2001 From: Jiri Drbalek Date: Wed, 17 Jan 2018 13:12:25 +0000 Subject: [PATCH] Avoid copying --- test/unit/geometry/polygon_vertex_processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/geometry/polygon_vertex_processor.cpp b/test/unit/geometry/polygon_vertex_processor.cpp index c40c26900..f1f5702fa 100644 --- a/test/unit/geometry/polygon_vertex_processor.cpp +++ b/test/unit/geometry/polygon_vertex_processor.cpp @@ -40,7 +40,7 @@ SECTION("empty inner ring") { proc.add_path(path); REQUIRE(proc.polygon_.size() == 2); - auto outer_ring = proc.polygon_.front(); + auto const& outer_ring = proc.polygon_.front(); REQUIRE(outer_ring.size() == 5); CHECK(outer_ring[0].x == Approx(-1));