summaryrefslogtreecommitdiffstats
path: root/src/tools/qgcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qgcache.cpp')
-rw-r--r--src/tools/qgcache.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tools/qgcache.cpp b/src/tools/qgcache.cpp
index 3c70d9f..2e6294b 100644
--- a/src/tools/qgcache.cpp
+++ b/src/tools/qgcache.cpp
@@ -283,7 +283,7 @@ QGCache::QGCache( const QGCache & )
: QPtrCollection()
{
#if defined(QT_CHECK_NULL)
- qFatal( "QGCache::QGCache(QGCache &): Cannot copy a cache" );
+ tqFatal( "QGCache::QGCache(QGCache &): Cannot copy a cache" );
#endif
}
@@ -305,7 +305,7 @@ QGCache::~QGCache()
QGCache &QGCache::operator=( const QGCache & )
{
#if defined(QT_CHECK_NULL)
- qFatal( "QGCache::operator=: Cannot copy a cache" );
+ tqFatal( "QGCache::operator=: Cannot copy a cache" );
#endif
return *this;
}
@@ -413,7 +413,7 @@ bool QGCache::insert_other( const char *key, QPtrCollection::Item data,
lruList->insertCosts += cost;
#endif
if ( keytype == AsciiKey && copyk )
- key = qstrdup( key );
+ key = tqstrdup( key );
if ( priority < -32768 )
priority = -32768;
else if ( priority > 32767 )
@@ -641,28 +641,28 @@ void QGCache::statistics() const
#if defined(QT_DEBUG)
QString line;
line.fill( '*', 80 );
- qDebug( "%s", line.ascii() );
- qDebug( "CACHE STATISTICS:" );
- qDebug( "cache contains %d item%s, with a total cost of %d",
+ tqDebug( "%s", line.ascii() );
+ tqDebug( "CACHE STATISTICS:" );
+ tqDebug( "cache contains %d item%s, with a total cost of %d",
count(), count() != 1 ? "s" : "", tCost );
- qDebug( "maximum cost is %d, cache is %d%% full.",
+ tqDebug( "maximum cost is %d, cache is %d%% full.",
mCost, (200*tCost + mCost) / (mCost*2) );
- qDebug( "find() has been called %d time%s",
+ tqDebug( "find() has been called %d time%s",
lruList->finds, lruList->finds != 1 ? "s" : "" );
- qDebug( "%d of these were hits, items found had a total cost of %d.",
+ tqDebug( "%d of these were hits, items found had a total cost of %d.",
lruList->hits,lruList->hitCosts );
- qDebug( "%d item%s %s been inserted with a total cost of %d.",
+ tqDebug( "%d item%s %s been inserted with a total cost of %d.",
lruList->inserts,lruList->inserts != 1 ? "s" : "",
lruList->inserts != 1 ? "have" : "has", lruList->insertCosts );
- qDebug( "%d item%s %s too large or had too low priority to be inserted.",
+ tqDebug( "%d item%s %s too large or had too low priority to be inserted.",
lruList->insertMisses, lruList->insertMisses != 1 ? "s" : "",
lruList->insertMisses != 1 ? "were" : "was" );
- qDebug( "%d item%s %s been thrown away with a total cost of %d.",
+ tqDebug( "%d item%s %s been thrown away with a total cost of %d.",
lruList->dumps, lruList->dumps != 1 ? "s" : "",
lruList->dumps != 1 ? "have" : "has", lruList->dumpCosts );
- qDebug( "Statistics from internal dictionary class:" );
+ tqDebug( "Statistics from internal dictionary class:" );
dict->statistics();
- qDebug( "%s", line.ascii() );
+ tqDebug( "%s", line.ascii() );
#endif
}