diff options
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/tests/TriangularPatchTest.cpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/tests/TriangularPatchTest.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/tests/TriangularPatchTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/tests/TriangularPatchTest.cpp index 04ae3f01677..07c8819e2c6 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/tests/TriangularPatchTest.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/tests/TriangularPatchTest.cpp @@ -123,8 +123,7 @@ TEST(TriangularPatchTest, bbox) { points[2] = DPair(0, 10); vector<Color> colors(3); TriangularPatch tp(points, colors, Color::ColorSpace::RGB, 0, 0); - BoundingBox bbox; - tp.getBBox(bbox); + BoundingBox bbox = tp.getBBox(); EXPECT_EQ(bbox, BoundingBox(0, 0, 10, 10)); } @@ -136,8 +135,7 @@ TEST(TriangularPatchTest, boundaryPath) { points[2] = DPair(0, 10); vector<Color> colors(3); TriangularPatch tp(points, colors, Color::ColorSpace::RGB, 0, 0); - GraphicsPath<double> path; - tp.getBoundaryPath(path); + GraphicsPath<double> path = tp.getBoundaryPath(); ostringstream oss; path.writeSVG(oss, false); EXPECT_EQ(oss.str(), "M0 0H10L0 10Z"); |