summaryrefslogtreecommitdiffstats
path: root/apps/ktorrent/leaktrace.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /apps/ktorrent/leaktrace.cpp
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'apps/ktorrent/leaktrace.cpp')
-rw-r--r--apps/ktorrent/leaktrace.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/ktorrent/leaktrace.cpp b/apps/ktorrent/leaktrace.cpp
index 76439ce..b6c3304 100644
--- a/apps/ktorrent/leaktrace.cpp
+++ b/apps/ktorrent/leaktrace.cpp
@@ -91,7 +91,7 @@ static void WriteLeakReport()
fclose(report);
}
-static void PrintStatus()
+static void PrinttqStatus()
{
if (mtree.count == 0)
{
@@ -124,7 +124,7 @@ static void RegisterAlloc(void* ptr,Uint32 size)
for (Uint32 b = 0;b < SOME_PRIME;b++)
mtree.buckets[b] = 0;
mtree.num_buckets = SOME_PRIME;
- atexit(PrintStatus);
+ atexit(PrinttqStatus);
}
// hash the address
@@ -147,7 +147,7 @@ static void RegisterAlloc(void* ptr,Uint32 size)
static void DeregisterAlloc(void* ptr)
{
if (print_status_done)
- printf("PrintStatus already happened !!!!!!!!!!\n");
+ printf("PrinttqStatus already happened !!!!!!!!!!\n");
Uint32 b = ADDR_HASH(ptr);
MemAlloc* p = mtree.buckets[b];
@@ -180,7 +180,7 @@ static void DeregisterAlloc(void* ptr)
if (!p->left && !p->right)
{
- // no children so just free p
+ // no tqchildren so just free p
if (prev->left == p)
{
free(prev->left);
@@ -214,7 +214,7 @@ static void DeregisterAlloc(void* ptr)
}
else
{
- // both children exist
+ // both tqchildren exist
if (prev->left == p)
{
// attach the left child of p