diff options
-rw-r--r-- | include/core/SkTypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index 0a3e3ac487..2cc4b9c8a9 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -395,7 +395,7 @@ static inline constexpr int Sk32ToBool(uint32_t n) { /** Generic swap function. Classes with efficient swaps should specialize this function to take their fast path. This function is used by SkTSort. */ -template <typename T> inline void SkTSwap(T& a, T& b) { +template <typename T> static inline void SkTSwap(T& a, T& b) { T c(std::move(a)); a = std::move(b); b = std::move(c); @@ -409,7 +409,7 @@ static inline int32_t SkAbs32(int32_t value) { return value; } -template <typename T> inline T SkTAbs(T value) { +template <typename T> static inline T SkTAbs(T value) { if (value < 0) { value = -value; } |