Avoid copying
This commit is contained in:
parent
99038229f7
commit
4e160acc88
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ SECTION("empty inner ring") {
|
||||||
proc.add_path(path);
|
proc.add_path(path);
|
||||||
|
|
||||||
REQUIRE(proc.polygon_.size() == 2);
|
REQUIRE(proc.polygon_.size() == 2);
|
||||||
auto outer_ring = proc.polygon_.front();
|
auto const& outer_ring = proc.polygon_.front();
|
||||||
REQUIRE(outer_ring.size() == 5);
|
REQUIRE(outer_ring.size() == 5);
|
||||||
|
|
||||||
CHECK(outer_ring[0].x == Approx(-1));
|
CHECK(outer_ring[0].x == Approx(-1));
|
||||||
|
|
Loading…
Reference in a new issue