summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MathUtil.h
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2020-02-09 00:39:30 +0000
committerGitHub <noreply@github.com>2020-02-09 00:39:30 +0000
commit0043a2cf3c86ce2b47203fce643b2e3faedab708 (patch)
tree6ddd6969f805fc21e72c8890113291014566b021 /Source/Core/Common/MathUtil.h
parent6a857df219f32a6b29683f54100e4cd92edd18e3 (diff)
parent4f47cccd9f46ca848f7a2923d3429d2b1dc21265 (diff)
Merge pull request #8615 from jordan-woyak/std-abs
Cleanup: Use std::abs instead of abs.
Diffstat (limited to 'Source/Core/Common/MathUtil.h')
-rw-r--r--Source/Core/Common/MathUtil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h
index c8489a389a..3ad01bc9fe 100644
--- a/Source/Core/Common/MathUtil.h
+++ b/Source/Core/Common/MathUtil.h
@@ -70,8 +70,8 @@ struct Rectangle
return left == r.left && top == r.top && right == r.right && bottom == r.bottom;
}
- T GetWidth() const { return abs(right - left); }
- T GetHeight() const { return abs(bottom - top); }
+ T GetWidth() const { return std::abs(right - left); }
+ T GetHeight() const { return std::abs(bottom - top); }
// If the rectangle is in a coordinate system with a lower-left origin, use
// this Clamp.
void ClampLL(T x1, T y1, T x2, T y2)