diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
commit | 359640943bcf155faa9a067dde9e00a123276290 (patch) | |
tree | fb3d55ea5e18949042fb0064123fb73d2b1eb932 /src/tools/qgarray.cpp | |
parent | a829bcdc533e154000803d517200d32fe762e85c (diff) | |
download | tqt3-359640943bcf155faa9a067dde9e00a123276290.tar.gz tqt3-359640943bcf155faa9a067dde9e00a123276290.zip |
Automated update from Qt3
Diffstat (limited to 'src/tools/qgarray.cpp')
-rw-r--r-- | src/tools/qgarray.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tools/qgarray.cpp b/src/tools/qgarray.cpp index 4d7fd38e4..8eba534ca 100644 --- a/src/tools/qgarray.cpp +++ b/src/tools/qgarray.cpp @@ -116,7 +116,7 @@ TQGArray::TQGArray() { shd = newData(); - Q_CHECK_PTR( shd ); + TQ_CHECK_PTR( shd ); } /*! @@ -143,11 +143,11 @@ TQGArray::TQGArray( int size ) size = 0; } shd = newData(); - Q_CHECK_PTR( shd ); + TQ_CHECK_PTR( shd ); if ( size == 0 ) // zero length return; shd->data = NEW(char,size); - Q_CHECK_PTR( shd->data ); + TQ_CHECK_PTR( shd->data ); shd->len = #ifdef QT_QGARRAY_SPEED_OPTIM shd->maxl = @@ -375,7 +375,7 @@ TQGArray &TQGArray::assign( const char *d, uint len ) if ( shd->count > 1 ) { // disconnect this shd->count--; shd = newData(); - Q_CHECK_PTR( shd ); + TQ_CHECK_PTR( shd ); } else { if ( shd->data ) DELETE(shd->data); @@ -401,10 +401,10 @@ TQGArray &TQGArray::duplicate( const TQGArray &a ) if ( shd->count > 1 ) { shd->count--; register array_data *n = newData(); - Q_CHECK_PTR( n ); + TQ_CHECK_PTR( n ); if ( (n->len=shd->len) ) { n->data = NEW(char,n->len); - Q_CHECK_PTR( n->data ); + TQ_CHECK_PTR( n->data ); if ( n->data ) memcpy( n->data, shd->data, n->len ); } else { @@ -418,13 +418,13 @@ TQGArray &TQGArray::duplicate( const TQGArray &a ) if ( shd->count > 1 ) { // disconnect this shd->count--; shd = newData(); - Q_CHECK_PTR( shd ); + TQ_CHECK_PTR( shd ); } else { // delete after copy was made oldptr = shd->data; } if ( a.shd->len ) { // duplicate data shd->data = NEW(char,a.shd->len); - Q_CHECK_PTR( shd->data ); + TQ_CHECK_PTR( shd->data ); if ( shd->data ) memcpy( shd->data, a.shd->data, a.shd->len ); } else { @@ -461,13 +461,13 @@ TQGArray &TQGArray::duplicate( const char *d, uint len ) return *this; } data = NEW(char,len); - Q_CHECK_PTR( data ); + TQ_CHECK_PTR( data ); memcpy( data, d, len ); } if ( shd->count > 1 ) { // detach shd->count--; shd = newData(); - Q_CHECK_PTR( shd ); + TQ_CHECK_PTR( shd ); } else { // just a single reference if ( shd->data ) DELETE(shd->data); |