From 86dfe1d9a8288af1942fd55c164de89221ef3a33 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 21 Feb 2019 14:03:05 -0500 Subject: [PATCH] BAffineTransform: Remove "register" storage class. Long since deprecated, and compilers can figure this out on their own now. Fixes a lot of errors in Clang. --- headers/os/interface/AffineTransform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headers/os/interface/AffineTransform.h b/headers/os/interface/AffineTransform.h index c296c00c50..da1efbda98 100644 --- a/headers/os/interface/AffineTransform.h +++ b/headers/os/interface/AffineTransform.h @@ -221,7 +221,7 @@ extern const BAffineTransform B_AFFINE_IDENTITY_TRANSFORM; inline void BAffineTransform::Apply(double* x, double* y) const { - register double tmp = *x; + double tmp = *x; *x = tmp * sx + *y * shx + tx; *y = tmp * shy + *y * sy + ty; } @@ -230,9 +230,9 @@ BAffineTransform::Apply(double* x, double* y) const inline void BAffineTransform::ApplyInverse(double* x, double* y) const { - register double d = InverseDeterminant(); - register double a = (*x - tx) * d; - register double b = (*y - ty) * d; + double d = InverseDeterminant(); + double a = (*x - tx) * d; + double b = (*y - ty) * d; *x = a * sy - b * shx; *y = b * sx - a * shy; }