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.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/qgcache.cpp b/src/tools/qgcache.cpp
index 190e3c9e9..a67112f9c 100644
--- a/src/tools/qgcache.cpp
+++ b/src/tools/qgcache.cpp
@@ -256,11 +256,11 @@ TQGCache::TQGCache( int maxCost, uint size, KeyType kt, bool caseSensitive,
{
keytype = kt;
lruList = new TQCList;
- Q_CHECK_PTR( lruList );
+ TQ_CHECK_PTR( lruList );
lruList->setAutoDelete( TRUE );
copyk = ((keytype == AsciiKey) && copyKeys);
dict = new TQCDict( size, kt, caseSensitive, FALSE );
- Q_CHECK_PTR( dict );
+ TQ_CHECK_PTR( dict );
mCost = maxCost;
tCost = 0;
#if defined(QT_DEBUG)
@@ -389,7 +389,7 @@ bool TQGCache::insert_string( const TQString &key, TQPtrCollection::Item data,
priority = 32677;
TQCacheItem *ci = new TQCacheItem( new TQString(key), newItem(data),
cost, (short)priority );
- Q_CHECK_PTR( ci );
+ TQ_CHECK_PTR( ci );
lruList->insert( 0, ci );
dict->insert_string( key, ci );
tCost += cost;
@@ -420,7 +420,7 @@ bool TQGCache::insert_other( const char *key, TQPtrCollection::Item data,
priority = 32677;
TQCacheItem *ci = new TQCacheItem( (void*)key, newItem(data), cost,
(short)priority );
- Q_CHECK_PTR( ci );
+ TQ_CHECK_PTR( ci );
lruList->insert( 0, ci );
if ( keytype == AsciiKey )
dict->insert_ascii( key, ci );
@@ -641,7 +641,7 @@ void TQGCache::statistics() const
#if defined(QT_DEBUG)
TQString line;
line.fill( '*', 80 );
- qDebug( line.ascii() );
+ qDebug( "%s", line.ascii() );
qDebug( "CACHE STATISTICS:" );
qDebug( "cache contains %d item%s, with a total cost of %d",
count(), count() != 1 ? "s" : "", tCost );
@@ -662,7 +662,7 @@ void TQGCache::statistics() const
lruList->dumps != 1 ? "have" : "has", lruList->dumpCosts );
qDebug( "Statistics from internal dictionary class:" );
dict->statistics();
- qDebug( line.ascii() );
+ qDebug( "%s", line.ascii() );
#endif
}