diff options
Diffstat (limited to 'tests/PathOpsConicLineIntersectionTest.cpp')
-rw-r--r-- | tests/PathOpsConicLineIntersectionTest.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/PathOpsConicLineIntersectionTest.cpp b/tests/PathOpsConicLineIntersectionTest.cpp index c3d4a2afe3..8a96519815 100644 --- a/tests/PathOpsConicLineIntersectionTest.cpp +++ b/tests/PathOpsConicLineIntersectionTest.cpp @@ -13,6 +13,8 @@ #include "SkReduceOrder.h" #include "Test.h" +#include <utility> + static struct lineConic { ConicPts conic; SkDLine line; @@ -38,7 +40,8 @@ static int doIntersect(SkIntersections& intersections, const SkDConic& conic, co double bottom = line[1].fY; flipped = top > bottom; if (flipped) { - SkTSwap<double>(top, bottom); + using std::swap; + swap(top, bottom); } result = intersections.vertical(conic, top, bottom, line[0].fX, flipped); } else if (line[0].fY == line[1].fY) { @@ -46,7 +49,8 @@ static int doIntersect(SkIntersections& intersections, const SkDConic& conic, co double right = line[1].fX; flipped = left > right; if (flipped) { - SkTSwap<double>(left, right); + using std::swap; + swap(left, right); } result = intersections.horizontal(conic, left, right, line[0].fY, flipped); } else { |