summaryrefslogtreecommitdiffstats
path: root/tdefx/tdestyle.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 23:14:04 +0900
commitaa98dbfe80580169f3df12489a77e8b904a1d9b9 (patch)
tree483608a6346be3fa4d8f95d35a05952c81221b91 /tdefx/tdestyle.cpp
parentf29aa92d38e9e1f353ed48f7952150437db8c890 (diff)
downloadtdelibs-aa98dbfe80580169f3df12489a77e8b904a1d9b9.tar.gz
tdelibs-aa98dbfe80580169f3df12489a77e8b904a1d9b9.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdefx/tdestyle.cpp')
-rw-r--r--tdefx/tdestyle.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tdefx/tdestyle.cpp b/tdefx/tdestyle.cpp
index 8e9fe40f0..ded6a2372 100644
--- a/tdefx/tdestyle.cpp
+++ b/tdefx/tdestyle.cpp
@@ -2031,11 +2031,11 @@ void TransparencyHandler::rightShadow(TQImage& dst)
// blend top-right corner.
int pixels = dst.width() * dst.height();
#ifdef WORDS_BIGENDIAN
- register unsigned char* data = dst.bits() + 1; // Skip alpha
+ unsigned char* data = dst.bits() + 1; // Skip alpha
#else
- register unsigned char* data = dst.bits(); // Skip alpha
+ unsigned char* data = dst.bits(); // Skip alpha
#endif
- for(register int i = 0; i < 16; i++) {
+ for(int i = 0; i < 16; i++) {
if (have_composite) {
data++;
data++;
@@ -2051,8 +2051,8 @@ void TransparencyHandler::rightShadow(TQImage& dst)
}
pixels -= 32; // tint right strip without rounded edges.
- register int c = 0;
- for(register int i = 0; i < pixels; i++) {
+ int c = 0;
+ for(int i = 0; i < pixels; i++) {
if (have_composite) {
data++;
data++;
@@ -2070,7 +2070,7 @@ void TransparencyHandler::rightShadow(TQImage& dst)
}
// tint bottom edge
- for(register int i = 0; i < 16; i++) {
+ for(int i = 0; i < 16; i++) {
if (have_composite) {
data++;
data++;
@@ -2099,15 +2099,15 @@ void TransparencyHandler::bottomShadow(TQImage& dst)
double* corner = const_cast<double*>(bottom_left_corner);
#ifdef WORDS_BIGENDIAN
- register unsigned char* data = dst.bits() + 1; // Skip alpha
+ unsigned char* data = dst.bits() + 1; // Skip alpha
#else
- register unsigned char* data = dst.bits(); // Skip alpha
+ unsigned char* data = dst.bits(); // Skip alpha
#endif
for(int y = 0; y < 4; y++)
{
// Bottom-left Corner
- for(register int x = 0; x < 4; x++) {
+ for(int x = 0; x < 4; x++) {
if (have_composite) {
data++;
data++;
@@ -2124,7 +2124,7 @@ void TransparencyHandler::bottomShadow(TQImage& dst)
}
// Scanline
- for(register int x = 0; x < width; x++) {
+ for(int x = 0; x < width; x++) {
if (have_composite) {
data++;
data++;