From 45211a7a9183f8f62cb3e90b6e718cf33e46bec6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Nov 2018 01:59:27 -0500 Subject: common/math_util: Simplify std::make_signed usages to std::make_signed_t Gets rid of the need to use typename to access the ::type alias. --- src/common/math_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/math_util.h') diff --git a/src/common/math_util.h b/src/common/math_util.h index cf5ad8457..94b4394c5 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h @@ -24,10 +24,10 @@ struct Rectangle { : left(left), top(top), right(right), bottom(bottom) {} T GetWidth() const { - return std::abs(static_cast::type>(right - left)); + return std::abs(static_cast>(right - left)); } T GetHeight() const { - return std::abs(static_cast::type>(bottom - top)); + return std::abs(static_cast>(bottom - top)); } Rectangle TranslateX(const T x) const { return Rectangle{left + x, top, right + x, bottom}; -- cgit v1.2.3