diff options
Diffstat (limited to 'src/tools/qgdict.cpp')
-rw-r--r-- | src/tools/qgdict.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/tools/qgdict.cpp b/src/tools/qgdict.cpp index ac54098fc..225745243 100644 --- a/src/tools/qgdict.cpp +++ b/src/tools/qgdict.cpp @@ -92,7 +92,7 @@ int TQGDict::hashKeyString( const TQString &key ) { #if defined(QT_CHECK_NULL) if ( key.isNull() ) - qWarning( "TQGDict::hashKeyString: Invalid null key" ); + tqWarning( "TQGDict::hashKeyString: Invalid null key" ); #endif int i; register uint h=0; @@ -127,7 +127,7 @@ int TQGDict::hashKeyAscii( const char *key ) { #if defined(QT_CHECK_NULL) if ( key == 0 ) - qWarning( "TQGDict::hashAsciiKey: Invalid null key" ); + tqWarning( "TQGDict::hashAsciiKey: Invalid null key" ); #endif register const char *k = key; register uint h=0; @@ -361,7 +361,7 @@ TQPtrCollection::Item TQGDict::look_string( const TQString &key, TQPtrCollection TQ_CHECK_PTR( n ); #if defined(QT_CHECK_NULL) if ( n->getData() == 0 ) - qWarning( "TQDict: Cannot insert null item" ); + tqWarning( "TQDict: Cannot insert null item" ); #endif vec[index] = n; numItems++; @@ -382,7 +382,7 @@ TQPtrCollection::Item TQGDict::look_ascii( const char *key, TQPtrCollection::Ite } else { for ( n=(TQAsciiBucket*)vec[index]; n; n=(TQAsciiBucket*)n->getNext() ) { - if ( qstricmp(n->getKey(),key) == 0 ) + if ( tqstricmp(n->getKey(),key) == 0 ) return n->getData(); // item found } } @@ -393,11 +393,11 @@ TQPtrCollection::Item TQGDict::look_ascii( const char *key, TQPtrCollection::Ite remove_ascii( key ); } // op_insert or op_replace - n = new TQAsciiBucket(copyk ? qstrdup(key) : key,newItem(d),vec[index]); + n = new TQAsciiBucket(copyk ? tqstrdup(key) : key,newItem(d),vec[index]); TQ_CHECK_PTR( n ); #if defined(QT_CHECK_NULL) if ( n->getData() == 0 ) - qWarning( "TQAsciiDict: Cannot insert null item" ); + tqWarning( "TQAsciiDict: Cannot insert null item" ); #endif vec[index] = n; numItems++; @@ -425,7 +425,7 @@ TQPtrCollection::Item TQGDict::look_int( long key, TQPtrCollection::Item d, int TQ_CHECK_PTR( n ); #if defined(QT_CHECK_NULL) if ( n->getData() == 0 ) - qWarning( "TQIntDict: Cannot insert null item" ); + tqWarning( "TQIntDict: Cannot insert null item" ); #endif vec[index] = n; numItems++; @@ -453,7 +453,7 @@ TQPtrCollection::Item TQGDict::look_ptr( void *key, TQPtrCollection::Item d, int TQ_CHECK_PTR( n ); #if defined(QT_CHECK_NULL) if ( n->getData() == 0 ) - qWarning( "TQPtrDict: Cannot insert null item" ); + tqWarning( "TQPtrDict: Cannot insert null item" ); #endif vec[index] = n; numItems++; @@ -610,7 +610,7 @@ TQAsciiBucket *TQGDict::unlink_ascii( const char *key, TQPtrCollection::Item d ) int index = hashKeyAscii(key) % vlen; for ( n=(TQAsciiBucket *)vec[index]; n; n=(TQAsciiBucket *)n->getNext() ) { bool found = (cases ? qstrcmp(n->getKey(),key) - : qstricmp(n->getKey(),key)) == 0; + : tqstricmp(n->getKey(),key)) == 0; if ( found && d ) found = (n->getData() == d); if ( found ) { @@ -846,11 +846,11 @@ void TQGDict::statistics() const TQString line; line.fill( '-', 60 ); double real, ideal; - qDebug( "%s", line.ascii() ); - qDebug( "DICTIONARY STATISTICS:" ); + tqDebug( "%s", line.ascii() ); + tqDebug( "DICTIONARY STATISTICS:" ); if ( count() == 0 ) { - qDebug( "Empty!" ); - qDebug( "%s", line.ascii() ); + tqDebug( "Empty!" ); + tqDebug( "%s", line.ascii() ); return; } real = 0.0; @@ -871,15 +871,15 @@ void TQGDict::statistics() const while ( b-- ) *pbuf++ = '*'; *pbuf = '\0'; - qDebug( "%s", buf ); + tqDebug( "%s", buf ); i++; } - qDebug( "Array size = %d", size() ); - qDebug( "# items = %d", count() ); - qDebug( "Real dist = %g", real ); - qDebug( "Rand dist = %g", ideal ); - qDebug( "Real/Rand = %g", real/ideal ); - qDebug( "%s", line.ascii() ); + tqDebug( "Array size = %d", size() ); + tqDebug( "# items = %d", count() ); + tqDebug( "Real dist = %g", real ); + tqDebug( "Rand dist = %g", ideal ); + tqDebug( "Real/Rand = %g", real/ideal ); + tqDebug( "%s", line.ascii() ); #endif // QT_DEBUG } @@ -1072,7 +1072,7 @@ TQPtrCollection::Item TQGDictIterator::toFirst() { if ( !dict ) { #if defined(QT_CHECK_NULL) - qWarning( "TQGDictIterator::toFirst: Dictionary has been deleted" ); + tqWarning( "TQGDictIterator::toFirst: Dictionary has been deleted" ); #endif return 0; } @@ -1098,7 +1098,7 @@ TQPtrCollection::Item TQGDictIterator::operator()() { if ( !dict ) { #if defined(QT_CHECK_NULL) - qWarning( "TQGDictIterator::operator(): Dictionary has been deleted" ); + tqWarning( "TQGDictIterator::operator(): Dictionary has been deleted" ); #endif return 0; } @@ -1117,7 +1117,7 @@ TQPtrCollection::Item TQGDictIterator::operator++() { if ( !dict ) { #if defined(QT_CHECK_NULL) - qWarning( "TQGDictIterator::operator++: Dictionary has been deleted" ); + tqWarning( "TQGDictIterator::operator++: Dictionary has been deleted" ); #endif return 0; } |