summaryrefslogtreecommitdiffstats
path: root/kdecore/kallocator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/kallocator.cpp')
-rw-r--r--kdecore/kallocator.cpp18
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)) {