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.
This commit is contained in:
@@ -221,7 +221,7 @@ extern const BAffineTransform B_AFFINE_IDENTITY_TRANSFORM;
|
|||||||
inline void
|
inline void
|
||||||
BAffineTransform::Apply(double* x, double* y) const
|
BAffineTransform::Apply(double* x, double* y) const
|
||||||
{
|
{
|
||||||
register double tmp = *x;
|
double tmp = *x;
|
||||||
*x = tmp * sx + *y * shx + tx;
|
*x = tmp * sx + *y * shx + tx;
|
||||||
*y = tmp * shy + *y * sy + ty;
|
*y = tmp * shy + *y * sy + ty;
|
||||||
}
|
}
|
||||||
@@ -230,9 +230,9 @@ BAffineTransform::Apply(double* x, double* y) const
|
|||||||
inline void
|
inline void
|
||||||
BAffineTransform::ApplyInverse(double* x, double* y) const
|
BAffineTransform::ApplyInverse(double* x, double* y) const
|
||||||
{
|
{
|
||||||
register double d = InverseDeterminant();
|
double d = InverseDeterminant();
|
||||||
register double a = (*x - tx) * d;
|
double a = (*x - tx) * d;
|
||||||
register double b = (*y - ty) * d;
|
double b = (*y - ty) * d;
|
||||||
*x = a * sy - b * shx;
|
*x = a * sy - b * shx;
|
||||||
*y = b * sx - a * shy;
|
*y = b * sx - a * shy;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user