summaryrefslogtreecommitdiffstats
path: root/src/tools/qbitarray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qbitarray.cpp')
-rw-r--r--src/tools/qbitarray.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/qbitarray.cpp b/src/tools/qbitarray.cpp
index ec8503276..a6cb131b0 100644
--- a/src/tools/qbitarray.cpp
+++ b/src/tools/qbitarray.cpp
@@ -372,7 +372,7 @@ bool TQBitArray::toggleBit( uint index )
return FALSE;
}
#endif
- register uchar *p = (uchar *)data() + (index>>3);
+ uchar *p = (uchar *)data() + (index>>3);
uchar b = (1 << (index & 7)); // bit position
uchar c = *p & b; // read bit
*p ^= b; // toggle bit
@@ -436,8 +436,8 @@ bool TQBitArray::toggleBit( uint index )
TQBitArray &TQBitArray::operator&=( const TQBitArray &a )
{
resize( TQMAX(size(), a.size()) );
- register uchar *a1 = (uchar *)data();
- register uchar *a2 = (uchar *)a.data();
+ uchar *a1 = (uchar *)data();
+ uchar *a2 = (uchar *)a.data();
int n = TQMIN( TQByteArray::size(), a.TQByteArray::size() );
int p = TQMAX( TQByteArray::size(), a.TQByteArray::size() ) - n;
while ( n-- > 0 )
@@ -467,8 +467,8 @@ TQBitArray &TQBitArray::operator&=( const TQBitArray &a )
TQBitArray &TQBitArray::operator|=( const TQBitArray &a )
{
resize( TQMAX(size(), a.size()) );
- register uchar *a1 = (uchar *)data();
- register uchar *a2 = (uchar *)a.data();
+ uchar *a1 = (uchar *)data();
+ uchar *a2 = (uchar *)a.data();
int n = TQMIN( TQByteArray::size(), a.TQByteArray::size() );
while ( n-- > 0 )
*a1++ |= *a2++;
@@ -495,8 +495,8 @@ TQBitArray &TQBitArray::operator|=( const TQBitArray &a )
TQBitArray &TQBitArray::operator^=( const TQBitArray &a )
{
resize( TQMAX(size(), a.size()) );
- register uchar *a1 = (uchar *)data();
- register uchar *a2 = (uchar *)a.data();
+ uchar *a1 = (uchar *)data();
+ uchar *a2 = (uchar *)a.data();
int n = TQMIN( TQByteArray::size(), a.TQByteArray::size() );
while ( n-- > 0 )
*a1++ ^= *a2++;
@@ -517,8 +517,8 @@ TQBitArray &TQBitArray::operator^=( const TQBitArray &a )
TQBitArray TQBitArray::operator~() const
{
TQBitArray a( size() );
- register uchar *a1 = (uchar *)data();
- register uchar *a2 = (uchar *)a.data();
+ uchar *a1 = (uchar *)data();
+ uchar *a2 = (uchar *)a.data();
int n = TQByteArray::size();
while ( n-- )
*a2++ = ~*a1++;