summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 23:52:59 +0900
commita8d88c3ebb2570b1de36ca9392b180a628623be0 (patch)
tree26adf1fc3c195475f48c6de1c8740975f649cc31
parent85364a842a62d00b1a64c41e56268b94af516fd8 (diff)
downloadtde-style-qtcurve-r14.0.x.tar.gz
tde-style-qtcurve-r14.0.x.zip
Removed explicit usage of the 'register' keyword.r14.0.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 74f3c1de12a68cb4533910a4a6e3579e5a657ddb)
-rw-r--r--common/common.h2
-rw-r--r--config/qtcurveconfig.cpp8
-rw-r--r--style/qtcurve.cpp8
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 9f06adb..24b1f19 100644
--- a/style/qtcurve.cpp
+++ b/style/qtcurve.cpp
@@ -7446,10 +7446,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),