From d9efea269a30eb63a73db7df0dc43836aae7b87c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 2 Feb 2022 11:28:00 +0100 Subject: [PATCH] Math: no need to pass scalars via a const&. --- src/Magnum/Math/Functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Math/Functions.h b/src/Magnum/Math/Functions.h index e421001d6..ddfda2209 100644 --- a/src/Magnum/Math/Functions.h +++ b/src/Magnum/Math/Functions.h @@ -389,7 +389,7 @@ template inline Vector clamp(const Vector 0, `0` if @p x = 0 and `-1` if @p x < 0. */ -template inline typename std::enable_if::value, T>::type sign(const T& scalar) { +template inline typename std::enable_if::value, T>::type sign(T scalar) { if(scalar > T(0)) return T(1); if(scalar < T(0)) return T(-1); return T(0);