diff options
Diffstat (limited to 'src/pathops/SkAddIntersections.cpp')
-rw-r--r-- | src/pathops/SkAddIntersections.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pathops/SkAddIntersections.cpp b/src/pathops/SkAddIntersections.cpp index f772cc2b06..1749ca9674 100644 --- a/src/pathops/SkAddIntersections.cpp +++ b/src/pathops/SkAddIntersections.cpp @@ -8,6 +8,8 @@ #include "SkOpCoincidence.h" #include "SkPathOpsBounds.h" +#include <utility> + #if DEBUG_ADD_INTERSECTING_TS static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt, @@ -551,8 +553,9 @@ bool AddIntersectTs(SkOpContour* test, SkOpContour* next, SkOpCoincidence* coinc continue; } if (swap) { - SkTSwap(coinPtT[0], coinPtT[1]); - SkTSwap(testTAt, nextTAt); + using std::swap; + swap(coinPtT[0], coinPtT[1]); + swap(testTAt, nextTAt); } SkASSERT(coincidence->globalState()->debugSkipAssert() || coinPtT[0]->span()->t() < testTAt->span()->t()); |