aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScaleToSides.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkScaleToSides.h')
-rw-r--r--src/core/SkScaleToSides.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/SkScaleToSides.h b/src/core/SkScaleToSides.h
index c700891061..61bff63a2b 100644
--- a/src/core/SkScaleToSides.h
+++ b/src/core/SkScaleToSides.h
@@ -8,10 +8,12 @@
#ifndef SkScaleToSides_DEFINED
#define SkScaleToSides_DEFINED
-#include <cmath>
#include "SkScalar.h"
#include "SkTypes.h"
+#include <cmath>
+#include <utility>
+
class SkScaleToSides {
public:
// This code assumes that a and b fit in a float, and therefore the resulting smaller value
@@ -30,7 +32,8 @@ public:
// Force minRadius to be the smaller of the two.
if (*minRadius > *maxRadius) {
- SkTSwap(minRadius, maxRadius);
+ using std::swap;
+ swap(minRadius, maxRadius);
}
// newMinRadius must be float in order to give the actual value of the radius.