summaryrefslogtreecommitdiffstats
path: root/kdecore/kvmallocator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/kvmallocator.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-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/kvmallocator.cpp')
-rw-r--r--kdecore/kvmallocator.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdecore/kvmallocator.cpp b/kdecore/kvmallocator.cpp
index 21d418434..996d55791 100644
--- a/kdecore/kvmallocator.cpp
+++ b/kdecore/kvmallocator.cpp
@@ -28,8 +28,8 @@
#include <unistd.h>
#include <sys/mman.h>
-#include <qintdict.h>
-#include <qmap.h>
+#include <tqintdict.h>
+#include <tqmap.h>
#include <ktempfile.h>
#include <kdebug.h>
@@ -53,8 +53,8 @@ class KVMAllocatorPrivate
public:
KTempFile *tempfile;
off_t max_length;
- QMap<off_t, KVMAllocator::Block> used_blocks;
- QMap<off_t, KVMAllocator::Block> free_blocks;
+ TQMap<off_t, KVMAllocator::Block> used_blocks;
+ TQMap<off_t, KVMAllocator::Block> free_blocks;
};
/**
@@ -85,11 +85,11 @@ KVMAllocator::allocate(size_t _size)
{
if (!d->tempfile)
{
- d->tempfile = new KTempFile(QString::null, "vmdata");
+ d->tempfile = new KTempFile(TQString::null, "vmdata");
d->tempfile->unlink();
}
// Search in free list
- QMap<off_t,KVMAllocator::Block>::iterator it;
+ TQMap<off_t,KVMAllocator::Block>::iterator it;
it = d->free_blocks.begin();
while (it != d->free_blocks.end())
{
@@ -137,7 +137,7 @@ KVMAllocator::free(Block *block_p)
kdDebug(180)<<"VM free: Block "<<(long)block.start<<" is still mmapped!"<<endl;
return;
}
- QMap<off_t,KVMAllocator::Block>::iterator it;
+ TQMap<off_t,KVMAllocator::Block>::iterator it;
it = d->used_blocks.find(block.start);
if (it == d->used_blocks.end())
{
@@ -146,7 +146,7 @@ KVMAllocator::free(Block *block_p)
}
d->used_blocks.remove(it);
it = d->free_blocks.replace(block.start, block);
- QMap<off_t,KVMAllocator::Block>::iterator before = it;
+ TQMap<off_t,KVMAllocator::Block>::iterator before = it;
--before;
if (before != d->free_blocks.end())
{
@@ -163,7 +163,7 @@ KVMAllocator::free(Block *block_p)
}
}
- QMap<off_t,KVMAllocator::Block>::iterator after = it;
+ TQMap<off_t,KVMAllocator::Block>::iterator after = it;
++after;
if (after != d->free_blocks.end())
{