From 74f3c1de12a68cb4533910a4a6e3579e5a657ddb Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:57 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro --- common/common.h | 2 +- config/qtcurveconfig.cpp | 8 ++++---- style/qtcurve.cpp | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/common/common.h b/common/common.h index 88dfb40..34d8345 100644 --- a/common/common.h +++ b/common/common.h @@ -1272,7 +1272,7 @@ static inline double mix(double a, double b, double k) static inline double wrap(double a, double d) { - register double r = fmod( a, d ); + double r = fmod( a, d ); return ( r < 0.0 ? d + r : ( r > 0.0 ? r : 0.0 ) ); } diff --git a/config/qtcurveconfig.cpp b/config/qtcurveconfig.cpp index 64ffcae..68e7c7a 100644 --- a/config/qtcurveconfig.cpp +++ b/config/qtcurveconfig.cpp @@ -85,10 +85,10 @@ static void drawGradient(const TQColor &top, const TQColor &bot, bool increase, r.coords(&rx, &ry, &rx2, &ry2); - register int rl(rTop << 16); - register int gl(gTop << 16); - register int bl(bTop << 16); - register int i; + int rl(rTop << 16); + int gl(gTop << 16); + int bl(bTop << 16); + int i; int dr(((1<<16) * (bot.red() - rTop)) / size), dg(((1<<16) * (bot.green() - gTop)) / size), diff --git a/style/qtcurve.cpp b/style/qtcurve.cpp index aeb1dad..5d35d24 100644 --- a/style/qtcurve.cpp +++ b/style/qtcurve.cpp @@ -7442,10 +7442,10 @@ void QtCurveStyle::drawGradient(const TQColor &top, const TQColor &bot, r.coords(&rx, &ry, &rx2, &ry2); - register int rl(rTop << 16); - register int gl(gTop << 16); - register int bl(bTop << 16); - register int i; + int rl(rTop << 16); + int gl(gTop << 16); + int bl(bTop << 16); + int i; int dr(((1<<16) * (bot.red() - rTop)) / size), dg(((1<<16) * (bot.green() - gTop)) / size), -- cgit v1.2.1