summaryrefslogtreecommitdiffstats
path: root/twin
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 23:52:43 +0900
commit2afc8bbbe4f529c5847cfbe1757e55c47e4656fe (patch)
tree76a398670f2197f0682ccad3beff2875555af078 /twin
parent25a1c781481d9f53476251d1d2059643cf3ac67a (diff)
downloadtdebase-2afc8bbbe4f529c5847cfbe1757e55c47e4656fe.tar.gz
tdebase-2afc8bbbe4f529c5847cfbe1757e55c47e4656fe.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 8250c8e42310cb39ceb6ae425bc8546208733e99)
Diffstat (limited to 'twin')
-rw-r--r--twin/client.cpp2
-rw-r--r--twin/clients/keramik/keramik.cpp14
-rw-r--r--twin/tools/xreply/xreply.c4
3 files changed, 10 insertions, 10 deletions
diff --git a/twin/client.cpp b/twin/client.cpp
index ce7461b36..b57cab35f 100644
--- a/twin/client.cpp
+++ b/twin/client.cpp
@@ -1482,7 +1482,7 @@ void Client::imposeCachedShadow(TQPixmap &pixmap, TQRegion exposed)
void Client::imposeRegionShadow(TQPixmap &pixmap, TQRegion occluded,
TQRegion exposed, int thickness, double maxOpacity)
{
- register int distance, intersectCount, i, j, x, y;
+ int distance, intersectCount, i, j, x, y;
QRgb pixel;
double decay, factor, opacity;
int red, green, blue, pixelRed, pixelGreen, pixelBlue;
diff --git a/twin/clients/keramik/keramik.cpp b/twin/clients/keramik/keramik.cpp
index 4043e6ee4..7a5225cc7 100644
--- a/twin/clients/keramik/keramik.cpp
+++ b/twin/clients/keramik/keramik.cpp
@@ -593,16 +593,16 @@ TQPixmap *KeramikHandler::composite( TQImage *over, TQImage *under )
// Copy the under image (bottom aligned) to the destination image
for (int y1 = height - under->height(), y2 = 0; y1 < height; y1++, y2++ )
{
- register TQ_UINT32 *dst = reinterpret_cast<TQ_UINT32*>( dest.scanLine(y1) );
- register TQ_UINT32 *src = reinterpret_cast<TQ_UINT32*>( under->scanLine(y2) );
+ TQ_UINT32 *dst = reinterpret_cast<TQ_UINT32*>( dest.scanLine(y1) );
+ TQ_UINT32 *src = reinterpret_cast<TQ_UINT32*>( under->scanLine(y2) );
for ( int x = 0; x < width; x++ )
*(dst++) = *(src++);
}
// Blend the over image onto the destination
- register TQ_UINT32 *dst = reinterpret_cast<TQ_UINT32*>( dest.bits() );
- register TQ_UINT32 *src = reinterpret_cast<TQ_UINT32*>( over->bits() );
+ TQ_UINT32 *dst = reinterpret_cast<TQ_UINT32*>( dest.bits() );
+ TQ_UINT32 *src = reinterpret_cast<TQ_UINT32*>( over->bits() );
for ( int i = 0; i < width * height; i++ )
{
int r1 = tqRed( *dst ), g1 = tqGreen( *dst ), b1 = tqBlue( *dst );
@@ -1155,13 +1155,13 @@ void KeramikClient::updateMask()
// over the pixels to compute the bounding rects from it.
TQRegion r;
- register int w, y = 0;
+ int w, y = 0;
if ( TQApplication::reverseLayout() ) {
// If the caption bubble is visible and extends above the titlebar
if ( largeCaption && captionRect.width() >= 25 ) {
- register int x = captionRect.left();
+ int x = captionRect.left();
w = captionRect.width();
r += TQRegion( x + 11, y++, w - 19, 1 );
r += TQRegion( x + 9, y++, w - 15, 1 );
@@ -1188,7 +1188,7 @@ void KeramikClient::updateMask()
// If the caption bubble is visible and extends above the titlebar
if ( largeCaption && captionRect.width() >= 25 ) {
- register int x = captionRect.left();
+ int x = captionRect.left();
w = captionRect.width();
r += TQRegion( x + 8, y++, w - 19, 1 );
r += TQRegion( x + 6, y++, w - 15, 1 );
diff --git a/twin/tools/xreply/xreply.c b/twin/tools/xreply/xreply.c
index ecdf6ebc3..ce5584190 100644
--- a/twin/tools/xreply/xreply.c
+++ b/twin/tools/xreply/xreply.c
@@ -165,8 +165,8 @@ static void xreply_backtrace()
Status
_XReply (dpy, rep, extra, discard)
- register Display *dpy;
- register xReply *rep;
+ Display *dpy;
+ xReply *rep;
int extra; /* number of 32-bit words expected after the reply */
Bool discard; /* should I discard data following "extra" words? */
{