diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/kallocator.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kallocator.cpp')
-rw-r--r-- | kdecore/kallocator.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kdecore/kallocator.cpp b/kdecore/kallocator.cpp index 6ad524dec..c02bbf3ff 100644 --- a/kdecore/kallocator.cpp +++ b/kdecore/kallocator.cpp @@ -88,7 +88,7 @@ void KZoneAllocator::insertHash(MemBlock *b) unsigned long key = adr >> log2; key = key & (hashSize - 1); if (!hashList[key]) - hashList[key] = new QValueList<MemBlock *>; + hashList[key] = new TQValueList<MemBlock *>; hashList[key]->append(b); adr += blockSize; } @@ -134,8 +134,8 @@ void KZoneAllocator::initHash() hashSize = 1024; if (hashSize > 64*1024) hashSize = 64*1024; - hashList = new QValueList<MemBlock *> *[hashSize]; - memset (hashList, 0, sizeof(QValueList<MemBlock*> *) * hashSize); + hashList = new TQValueList<MemBlock *> *[hashSize]; + memset (hashList, 0, sizeof(TQValueList<MemBlock*> *) * hashSize); hashDirty = false; for (MemBlock *b = currentBlock; b; b = b->older) insertHash(b); @@ -156,9 +156,9 @@ void KZoneAllocator::delBlock(MemBlock *b) unsigned long key = adr >> log2; key = key & (hashSize - 1); if (hashList[key]) { - QValueList<MemBlock *> *list = hashList[key]; - QValueList<MemBlock *>::Iterator it = list->begin(); - QValueList<MemBlock *>::Iterator endit = list->end(); + TQValueList<MemBlock *> *list = hashList[key]; + TQValueList<MemBlock *>::Iterator it = list->begin(); + TQValueList<MemBlock *>::Iterator endit = list->end(); for (; it != endit; ++it) if (*it == b) { list->remove(it); @@ -210,15 +210,15 @@ KZoneAllocator::deallocate(void *ptr) initHash(); unsigned long key = (((unsigned long)ptr) >> log2) & (hashSize - 1); - QValueList<MemBlock *> *list = hashList[key]; + TQValueList<MemBlock *> *list = hashList[key]; if (!list) { /* Can happen with certain usage pattern of intermixed free_since() and deallocate(). */ //qDebug("Uhoh"); return; } - QValueList<MemBlock*>::ConstIterator it = list->begin(); - QValueList<MemBlock*>::ConstIterator endit = list->end(); + TQValueList<MemBlock*>::ConstIterator it = list->begin(); + TQValueList<MemBlock*>::ConstIterator endit = list->end(); for (; it != endit; ++it) { MemBlock *cur = *it; if (cur->is_in(ptr)) { |