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 20:17:35 +0900
commit8250c8e42310cb39ceb6ae425bc8546208733e99 (patch)
tree6e27394b86eb387505f1e2cb712630e001d34fb8 /twin
parent234e466e0e524cfd92a268c37d504a7ff910ca45 (diff)
downloadtdebase-8250c8e42310cb39ceb6ae425bc8546208733e99.tar.gz
tdebase-8250c8e42310cb39ceb6ae425bc8546208733e99.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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? */
{