From 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 28 Feb 2012 22:31:39 -0600 Subject: Automated conversion from qt3 --- src/tools/qgcache.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/tools/qgcache.cpp') diff --git a/src/tools/qgcache.cpp b/src/tools/qgcache.cpp index a67112f9c..7d6d7d415 100644 --- a/src/tools/qgcache.cpp +++ b/src/tools/qgcache.cpp @@ -283,7 +283,7 @@ TQGCache::TQGCache( const TQGCache & ) : TQPtrCollection() { #if defined(QT_CHECK_NULL) - qFatal( "TQGCache::TQGCache(TQGCache &): Cannot copy a cache" ); + tqFatal( "TQGCache::TQGCache(TQGCache &): Cannot copy a cache" ); #endif } @@ -305,7 +305,7 @@ TQGCache::~TQGCache() TQGCache &TQGCache::operator=( const TQGCache & ) { #if defined(QT_CHECK_NULL) - qFatal( "TQGCache::operator=: Cannot copy a cache" ); + tqFatal( "TQGCache::operator=: Cannot copy a cache" ); #endif return *this; } @@ -413,7 +413,7 @@ bool TQGCache::insert_other( const char *key, TQPtrCollection::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 TQGCache::statistics() const #if defined(QT_DEBUG) TQString 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 } -- cgit v1.2.1