diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:32 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-02-01 23:39:38 +0100 |
commit | 961eb3f6e276b4a3609328a3076ef790026e9c03 (patch) | |
tree | f27de88e666ac3e067e01b15ac60a103eb3c559f /src/kernel/qpointarray.cpp | |
parent | b08a6d71ba872e67b75a822fcd44670126975818 (diff) | |
download | qt3-961eb3f6e276b4a3609328a3076ef790026e9c03.tar.gz qt3-961eb3f6e276b4a3609328a3076ef790026e9c03.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/qpointarray.cpp')
-rw-r--r-- | src/kernel/qpointarray.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/qpointarray.cpp b/src/kernel/qpointarray.cpp index d1c7569..b7f5b2c 100644 --- a/src/kernel/qpointarray.cpp +++ b/src/kernel/qpointarray.cpp @@ -190,8 +190,8 @@ QPointArray::QPointArray( int nPoints, const QCOORD *points ) void QPointArray::translate( int dx, int dy ) { - register QPoint *p = data(); - register int i = size(); + QPoint *p = data(); + int i = size(); QPoint pt( dx, dy ); while ( i-- ) { *p += pt; @@ -440,7 +440,7 @@ QRect QPointArray::boundingRect() const { if ( isEmpty() ) return QRect( 0, 0, 0, 0 ); // null rectangle - register QPoint *pd = data(); + QPoint *pd = data(); int minx, maxx, miny, maxy; minx = maxx = pd->x(); miny = maxy = pd->y(); @@ -937,7 +937,7 @@ QPointArray QPointArray::cubicBezier() const if ( m < 2 ) // at least two points m = 2; QPointArray p( m ); // p = Bezier point array - register QPointData *pd = p.data(); + QPointData *pd = p.data(); float x0 = xvec[0], y0 = yvec[0]; float dt = 1.0F/m; @@ -1018,7 +1018,7 @@ QPointArray QPointArray::cubicBezier() const QDataStream &operator<<( QDataStream &s, const QPointArray &a ) { - register uint i; + uint i; uint len = a.size(); s << len; // write size of array for ( i=0; i<len; i++ ) // write each point @@ -1037,7 +1037,7 @@ QDataStream &operator<<( QDataStream &s, const QPointArray &a ) QDataStream &operator>>( QDataStream &s, QPointArray &a ) { - register uint i; + uint i; uint len; s >> len; // read size of array if ( !a.resize( len ) ) // no memory |