diff options
Diffstat (limited to 'knode/knmemorymanager.cpp')
-rw-r--r-- | knode/knmemorymanager.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/knode/knmemorymanager.cpp b/knode/knmemorymanager.cpp index 283bcf546..37a639287 100644 --- a/knode/knmemorymanager.cpp +++ b/knode/knmemorymanager.cpp @@ -31,9 +31,9 @@ KNMemoryManager::KNMemoryManager() KNMemoryManager::~KNMemoryManager() { - for ( QValueList<CollectionItem*>::Iterator it = mColList.begin(); it != mColList.end(); ++it ) + for ( TQValueList<CollectionItem*>::Iterator it = mColList.begin(); it != mColList.end(); ++it ) delete (*it); - for ( QValueList<ArticleItem*>::Iterator it = mArtList.begin(); it != mArtList.end(); ++it ) + for ( TQValueList<ArticleItem*>::Iterator it = mArtList.begin(); it != mArtList.end(); ++it ) delete (*it); } @@ -122,7 +122,7 @@ void KNMemoryManager::removeCacheEntry(KNArticle *a) KNMemoryManager::CollectionItem* KNMemoryManager::findCacheEntry(KNArticleCollection *c, bool take) { - for ( QValueList<CollectionItem*>::Iterator it = mColList.begin(); it != mColList.end(); ++it ) { + for ( TQValueList<CollectionItem*>::Iterator it = mColList.begin(); it != mColList.end(); ++it ) { if ( (*it)->col == c ) { CollectionItem *ret = (*it); if ( take ) @@ -137,7 +137,7 @@ KNMemoryManager::CollectionItem* KNMemoryManager::findCacheEntry(KNArticleCollec KNMemoryManager::ArticleItem* KNMemoryManager::findCacheEntry(KNArticle *a, bool take) { - for ( QValueList<ArticleItem*>::Iterator it = mArtList.begin(); it != mArtList.end(); ++it ) { + for ( TQValueList<ArticleItem*>::Iterator it = mArtList.begin(); it != mArtList.end(); ++it ) { if ( (*it)->art == a ) { ArticleItem *ret = (*it); if ( take ) @@ -156,10 +156,10 @@ void KNMemoryManager::checkMemoryUsageCollections() KNArticleCollection *c=0; if (c_ollCacheSize > maxSize) { - QValueList<CollectionItem*> tempList( mColList ); // work on a copy, KNGroup-/Foldermanager will + TQValueList<CollectionItem*> tempList( mColList ); // work on a copy, KNGroup-/Foldermanager will // modify the original list - for ( QValueList<CollectionItem*>::Iterator it = tempList.begin(); it != tempList.end(); ) { + for ( TQValueList<CollectionItem*>::Iterator it = tempList.begin(); it != tempList.end(); ) { if ( c_ollCacheSize <= maxSize ) break; // unloadHeaders() will remove the cache entry and thus invalidate the iterator! @@ -185,10 +185,10 @@ void KNMemoryManager::checkMemoryUsageArticles() int maxSize = knGlobals.configManager()->readNewsGeneral()->artCacheSize() * 1024; if (a_rtCacheSize > maxSize) { - QValueList<ArticleItem*> tempList( mArtList ); // work on a copy, KNArticlemanager will + TQValueList<ArticleItem*> tempList( mArtList ); // work on a copy, KNArticlemanager will // modify the original list - for ( QValueList<ArticleItem*>::Iterator it = mArtList.begin(); it != mArtList.end(); ) { + for ( TQValueList<ArticleItem*>::Iterator it = mArtList.begin(); it != mArtList.end(); ) { if ( a_rtCacheSize <= maxSize ) break; // unloadArticle() will remove the cache entry and thus invalidate the iterator! |