summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/tests/TriangularPatchTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/tests/TriangularPatchTest.cpp')
-rw-r--r--dviware/dvisvgm/tests/TriangularPatchTest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/dviware/dvisvgm/tests/TriangularPatchTest.cpp b/dviware/dvisvgm/tests/TriangularPatchTest.cpp
index 04ae3f0167..07c8819e2c 100644
--- a/dviware/dvisvgm/tests/TriangularPatchTest.cpp
+++ b/dviware/dvisvgm/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");