From 359640943bcf155faa9a067dde9e00a123276290 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 13 Feb 2012 17:43:39 -0600 Subject: Automated update from Qt3 --- src/tools/qgarray.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/tools/qgarray.cpp') 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); -- cgit v1.2.1