From d37c826097101fa7ac59fb1e90e9419090d41380 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Nov 2018 01:59:27 -0500 Subject: [PATCH] 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(-) 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};