summaryrefslogtreecommitdiffstats
path: root/src/tools/qgvector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qgvector.cpp')
-rw-r--r--src/tools/qgvector.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/qgvector.cpp b/src/tools/qgvector.cpp
index b53e41721..90bb88e07 100644
--- a/src/tools/qgvector.cpp
+++ b/src/tools/qgvector.cpp
@@ -176,7 +176,7 @@ TQGVector::TQGVector( uint size ) // create vectors with nullptrs
return;
}
vec = NEW(Item,len);
- Q_CHECK_PTR( vec );
+ TQ_CHECK_PTR( vec );
memset( (void*)vec, 0, len*sizeof(Item) ); // fill with nulls
}
@@ -190,11 +190,11 @@ TQGVector::TQGVector( const TQGVector &a ) // make copy of other vector
return;
}
vec = NEW( Item, len );
- Q_CHECK_PTR( vec );
+ TQ_CHECK_PTR( vec );
for ( uint i = 0; i < len; i++ ) {
if ( a.vec[i] ) {
vec[i] = newItem( a.vec[i] );
- Q_CHECK_PTR( vec[i] );
+ TQ_CHECK_PTR( vec[i] );
} else {
vec[i] = 0;
}
@@ -219,11 +219,11 @@ TQGVector& TQGVector::operator=( const TQGVector &v )
return *this;
}
vec = NEW( Item, len );
- Q_CHECK_PTR( vec );
+ TQ_CHECK_PTR( vec );
for ( uint i = 0; i < len; i++ ) {
if ( v.vec[i] ) {
vec[i] = newItem( v.vec[i] );
- Q_CHECK_PTR( vec[i] );
+ TQ_CHECK_PTR( vec[i] );
} else {
vec[i] = 0;
}
@@ -246,7 +246,7 @@ bool TQGVector::insert( uint index, Item d ) // insert item at index
}
if ( d ) {
vec[index] = newItem( d );
- Q_CHECK_PTR( vec[index] );
+ TQ_CHECK_PTR( vec[index] );
numItems++;
return vec[index] != 0;
} else {
@@ -560,7 +560,7 @@ TQDataStream &TQGVector::read( TQDataStream &s ) // read vector from stream
for (uint i=0; i<num; i++) { // read all items
Item d;
read( s, d );
- Q_CHECK_PTR( d );
+ TQ_CHECK_PTR( d );
if ( !d ) // no memory
break;
vec[i] = d;