aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkStroke.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkStroke.cpp')
-rw-r--r--src/core/SkStroke.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp
index bb216d12d1..b880c152da 100644
--- a/src/core/SkStroke.cpp
+++ b/src/core/SkStroke.cpp
@@ -13,6 +13,8 @@
#include "SkPointPriv.h"
#include "SkTo.h"
+#include <utility>
+
enum {
kTangent_RecursiveLimit,
kCubic_RecursiveLimit,
@@ -983,7 +985,8 @@ static bool sharp_angle(const SkPoint quad[3]) {
SkScalar smallerLen = SkPointPriv::LengthSqd(smaller);
SkScalar largerLen = SkPointPriv::LengthSqd(larger);
if (smallerLen > largerLen) {
- SkTSwap(smaller, larger);
+ using std::swap;
+ swap(smaller, larger);
largerLen = smallerLen;
}
if (!smaller.setLength(largerLen)) {