diff options
Diffstat (limited to 'src/tools/qgdict.cpp')
-rw-r--r-- | src/tools/qgdict.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/tools/qgdict.cpp b/src/tools/qgdict.cpp index 99c0cbc29..ac54098fc 100644 --- a/src/tools/qgdict.cpp +++ b/src/tools/qgdict.cpp @@ -210,7 +210,7 @@ void TQGDict::init( uint len, KeyType kt, bool caseSensitive, bool copyKeys ) vlen = len ? len : 17; vec = new TQBaseBucket *[ vlen ]; - Q_CHECK_PTR( vec ); + TQ_CHECK_PTR( vec ); memset( (char*)vec, 0, vlen*sizeof(TQBaseBucket*) ); numItems = 0; iterators = 0; @@ -358,7 +358,7 @@ TQPtrCollection::Item TQGDict::look_string( const TQString &key, TQPtrCollection } // op_insert or op_replace n = new TQStringBucket(key,newItem(d),vec[index]); - Q_CHECK_PTR( n ); + TQ_CHECK_PTR( n ); #if defined(QT_CHECK_NULL) if ( n->getData() == 0 ) qWarning( "TQDict: Cannot insert null item" ); @@ -394,7 +394,7 @@ TQPtrCollection::Item TQGDict::look_ascii( const char *key, TQPtrCollection::Ite } // op_insert or op_replace n = new TQAsciiBucket(copyk ? qstrdup(key) : key,newItem(d),vec[index]); - Q_CHECK_PTR( n ); + TQ_CHECK_PTR( n ); #if defined(QT_CHECK_NULL) if ( n->getData() == 0 ) qWarning( "TQAsciiDict: Cannot insert null item" ); @@ -422,7 +422,7 @@ TQPtrCollection::Item TQGDict::look_int( long key, TQPtrCollection::Item d, int } // op_insert or op_replace n = new TQIntBucket(key,newItem(d),vec[index]); - Q_CHECK_PTR( n ); + TQ_CHECK_PTR( n ); #if defined(QT_CHECK_NULL) if ( n->getData() == 0 ) qWarning( "TQIntDict: Cannot insert null item" ); @@ -450,7 +450,7 @@ TQPtrCollection::Item TQGDict::look_ptr( void *key, TQPtrCollection::Item d, int } // op_insert or op_replace n = new TQPtrBucket(key,newItem(d),vec[index]); - Q_CHECK_PTR( n ); + TQ_CHECK_PTR( n ); #if defined(QT_CHECK_NULL) if ( n->getData() == 0 ) qWarning( "TQPtrDict: Cannot insert null item" ); @@ -474,7 +474,7 @@ void TQGDict::resize( uint newsize ) bool old_copyk = copyk; vec = new TQBaseBucket *[vlen = newsize]; - Q_CHECK_PTR( vec ); + TQ_CHECK_PTR( vec ); memset( (char*)vec, 0, vlen*sizeof(TQBaseBucket*) ); numItems = 0; copyk = FALSE; @@ -846,11 +846,11 @@ void TQGDict::statistics() const TQString line; line.fill( '-', 60 ); double real, ideal; - qDebug( line.ascii() ); + qDebug( "%s", line.ascii() ); qDebug( "DICTIONARY STATISTICS:" ); if ( count() == 0 ) { qDebug( "Empty!" ); - qDebug( line.ascii() ); + qDebug( "%s", line.ascii() ); return; } real = 0.0; @@ -871,7 +871,7 @@ void TQGDict::statistics() const while ( b-- ) *pbuf++ = '*'; *pbuf = '\0'; - qDebug( buf ); + qDebug( "%s", buf ); i++; } qDebug( "Array size = %d", size() ); @@ -879,7 +879,7 @@ void TQGDict::statistics() const qDebug( "Real dist = %g", real ); qDebug( "Rand dist = %g", ideal ); qDebug( "Real/Rand = %g", real/ideal ); - qDebug( line.ascii() ); + qDebug( "%s", line.ascii() ); #endif // QT_DEBUG } @@ -1018,7 +1018,7 @@ TQGDictIterator::TQGDictIterator( const TQGDict &d ) toFirst(); // set to first noe if ( !dict->iterators ) { dict->iterators = new TQGDItList; // create iterator list - Q_CHECK_PTR( dict->iterators ); + TQ_CHECK_PTR( dict->iterators ); } dict->iterators->append( this ); // attach iterator to dict } |