summaryrefslogtreecommitdiffstats
path: root/src/tools/qgdict.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qgdict.cpp')
-rw-r--r--src/tools/qgdict.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/tools/qgdict.cpp b/src/tools/qgdict.cpp
index b9c1810..0e86c20 100644
--- a/src/tools/qgdict.cpp
+++ b/src/tools/qgdict.cpp
@@ -92,7 +92,7 @@ int QGDict::hashKeyString( const QString &key )
{
#if defined(QT_CHECK_NULL)
if ( key.isNull() )
- qWarning( "QGDict::hashKeyString: Invalid null key" );
+ tqWarning( "QGDict::hashKeyString: Invalid null key" );
#endif
int i;
register uint h=0;
@@ -127,7 +127,7 @@ int QGDict::hashKeyAscii( const char *key )
{
#if defined(QT_CHECK_NULL)
if ( key == 0 )
- qWarning( "QGDict::hashAsciiKey: Invalid null key" );
+ tqWarning( "QGDict::hashAsciiKey: Invalid null key" );
#endif
register const char *k = key;
register uint h=0;
@@ -361,7 +361,7 @@ QPtrCollection::Item QGDict::look_string( const QString &key, QPtrCollection::It
Q_CHECK_PTR( n );
#if defined(QT_CHECK_NULL)
if ( n->getData() == 0 )
- qWarning( "QDict: Cannot insert null item" );
+ tqWarning( "QDict: Cannot insert null item" );
#endif
vec[index] = n;
numItems++;
@@ -382,7 +382,7 @@ QPtrCollection::Item QGDict::look_ascii( const char *key, QPtrCollection::Item d
} else {
for ( n=(QAsciiBucket*)vec[index]; n;
n=(QAsciiBucket*)n->getNext() ) {
- if ( qstricmp(n->getKey(),key) == 0 )
+ if ( tqstricmp(n->getKey(),key) == 0 )
return n->getData(); // item found
}
}
@@ -393,11 +393,11 @@ QPtrCollection::Item QGDict::look_ascii( const char *key, QPtrCollection::Item d
remove_ascii( key );
}
// op_insert or op_replace
- n = new QAsciiBucket(copyk ? qstrdup(key) : key,newItem(d),vec[index]);
+ n = new QAsciiBucket(copyk ? tqstrdup(key) : key,newItem(d),vec[index]);
Q_CHECK_PTR( n );
#if defined(QT_CHECK_NULL)
if ( n->getData() == 0 )
- qWarning( "QAsciiDict: Cannot insert null item" );
+ tqWarning( "QAsciiDict: Cannot insert null item" );
#endif
vec[index] = n;
numItems++;
@@ -425,7 +425,7 @@ QPtrCollection::Item QGDict::look_int( long key, QPtrCollection::Item d, int op
Q_CHECK_PTR( n );
#if defined(QT_CHECK_NULL)
if ( n->getData() == 0 )
- qWarning( "QIntDict: Cannot insert null item" );
+ tqWarning( "QIntDict: Cannot insert null item" );
#endif
vec[index] = n;
numItems++;
@@ -453,7 +453,7 @@ QPtrCollection::Item QGDict::look_ptr( void *key, QPtrCollection::Item d, int op
Q_CHECK_PTR( n );
#if defined(QT_CHECK_NULL)
if ( n->getData() == 0 )
- qWarning( "QPtrDict: Cannot insert null item" );
+ tqWarning( "QPtrDict: Cannot insert null item" );
#endif
vec[index] = n;
numItems++;
@@ -610,7 +610,7 @@ QAsciiBucket *QGDict::unlink_ascii( const char *key, QPtrCollection::Item d )
int index = hashKeyAscii(key) % vlen;
for ( n=(QAsciiBucket *)vec[index]; n; n=(QAsciiBucket *)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 QGDict::statistics() const
QString 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 QGDict::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 @@ QPtrCollection::Item QGDictIterator::toFirst()
{
if ( !dict ) {
#if defined(QT_CHECK_NULL)
- qWarning( "QGDictIterator::toFirst: Dictionary has been deleted" );
+ tqWarning( "QGDictIterator::toFirst: Dictionary has been deleted" );
#endif
return 0;
}
@@ -1098,7 +1098,7 @@ QPtrCollection::Item QGDictIterator::operator()()
{
if ( !dict ) {
#if defined(QT_CHECK_NULL)
- qWarning( "QGDictIterator::operator(): Dictionary has been deleted" );
+ tqWarning( "QGDictIterator::operator(): Dictionary has been deleted" );
#endif
return 0;
}
@@ -1117,7 +1117,7 @@ QPtrCollection::Item QGDictIterator::operator++()
{
if ( !dict ) {
#if defined(QT_CHECK_NULL)
- qWarning( "QGDictIterator::operator++: Dictionary has been deleted" );
+ tqWarning( "QGDictIterator::operator++: Dictionary has been deleted" );
#endif
return 0;
}