From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- knode/knmemorymanager.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'knode/knmemorymanager.cpp') diff --git a/knode/knmemorymanager.cpp b/knode/knmemorymanager.cpp index 283bcf54..37a63928 100644 --- a/knode/knmemorymanager.cpp +++ b/knode/knmemorymanager.cpp @@ -31,9 +31,9 @@ KNMemoryManager::KNMemoryManager() KNMemoryManager::~KNMemoryManager() { - for ( QValueList::Iterator it = mColList.begin(); it != mColList.end(); ++it ) + for ( TQValueList::Iterator it = mColList.begin(); it != mColList.end(); ++it ) delete (*it); - for ( QValueList::Iterator it = mArtList.begin(); it != mArtList.end(); ++it ) + for ( TQValueList::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::Iterator it = mColList.begin(); it != mColList.end(); ++it ) { + for ( TQValueList::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::Iterator it = mArtList.begin(); it != mArtList.end(); ++it ) { + for ( TQValueList::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 tempList( mColList ); // work on a copy, KNGroup-/Foldermanager will + TQValueList tempList( mColList ); // work on a copy, KNGroup-/Foldermanager will // modify the original list - for ( QValueList::Iterator it = tempList.begin(); it != tempList.end(); ) { + for ( TQValueList::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 tempList( mArtList ); // work on a copy, KNArticlemanager will + TQValueList tempList( mArtList ); // work on a copy, KNArticlemanager will // modify the original list - for ( QValueList::Iterator it = mArtList.begin(); it != mArtList.end(); ) { + for ( TQValueList::Iterator it = mArtList.begin(); it != mArtList.end(); ) { if ( a_rtCacheSize <= maxSize ) break; // unloadArticle() will remove the cache entry and thus invalidate the iterator! -- cgit v1.2.3