diff options
Diffstat (limited to 'src/tools/qgarray.cpp')
-rw-r--r-- | src/tools/qgarray.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tools/qgarray.cpp b/src/tools/qgarray.cpp index 31e881790..f2b41e506 100644 --- a/src/tools/qgarray.cpp +++ b/src/tools/qgarray.cpp @@ -324,13 +324,13 @@ bool TQGArray::fill( const char *d, int len, uint sz ) if ( sz == 1 ) // 8 bit elements memset( data(), *d, len ); else if ( sz == 4 ) { // 32 bit elements - register Q_INT32 *x = (Q_INT32*)data(); - Q_INT32 v = *((Q_INT32*)d); + register TQ_INT32 *x = (TQ_INT32*)data(); + TQ_INT32 v = *((TQ_INT32*)d); while ( len-- ) *x++ = v; } else if ( sz == 2 ) { // 16 bit elements - register Q_INT16 *x = (Q_INT16*)data(); - Q_INT16 v = *((Q_INT16*)d); + register TQ_INT16 *x = (TQ_INT16*)data(); + TQ_INT16 v = *((TQ_INT16*)d); while ( len-- ) *x++ = v; } else { // any other size elements @@ -619,8 +619,8 @@ int TQGArray::find( const char *d, uint index, uint sz ) const } break; case 2: { // 16 bit elements - register Q_INT16 *x = (Q_INT16*)(data() + index); - Q_INT16 v = *((Q_INT16*)d); + register TQ_INT16 *x = (TQ_INT16*)(data() + index); + TQ_INT16 v = *((TQ_INT16*)d); for ( i=index; i<shd->len; i+=2 ) { if ( *x++ == v ) break; @@ -629,8 +629,8 @@ int TQGArray::find( const char *d, uint index, uint sz ) const } break; case 4: { // 32 bit elements - register Q_INT32 *x = (Q_INT32*)(data() + index); - Q_INT32 v = *((Q_INT32*)d); + register TQ_INT32 *x = (TQ_INT32*)(data() + index); + TQ_INT32 v = *((TQ_INT32*)d); for ( i=index; i<shd->len; i+=4 ) { if ( *x++ == v ) break; @@ -672,8 +672,8 @@ int TQGArray::contains( const char *d, uint sz ) const } break; case 2: { // 16 bit elements - register Q_INT16 *x = (Q_INT16*)data(); - Q_INT16 v = *((Q_INT16*)d); + register TQ_INT16 *x = (TQ_INT16*)data(); + TQ_INT16 v = *((TQ_INT16*)d); i /= 2; while ( i-- ) { if ( *x++ == v ) @@ -682,8 +682,8 @@ int TQGArray::contains( const char *d, uint sz ) const } break; case 4: { // 32 bit elements - register Q_INT32 *x = (Q_INT32*)data(); - Q_INT32 v = *((Q_INT32*)d); + register TQ_INT32 *x = (TQ_INT32*)data(); + TQ_INT32 v = *((TQ_INT32*)d); i /= 4; while ( i-- ) { if ( *x++ == v ) |