From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kviewshell/plugins/djvu/libdjvu/DataPool.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kviewshell/plugins/djvu/libdjvu/DataPool.cpp') diff --git a/kviewshell/plugins/djvu/libdjvu/DataPool.cpp b/kviewshell/plugins/djvu/libdjvu/DataPool.cpp index 1190292e..176d3915 100644 --- a/kviewshell/plugins/djvu/libdjvu/DataPool.cpp +++ b/kviewshell/plugins/djvu/libdjvu/DataPool.cpp @@ -187,7 +187,7 @@ DataPool::OpenFiles_File::add_pool(GP &pool) DEBUG_MSG("DataPool::OpenFiles_File::add_pool: pool=" << (void *) pool << "\n"); DEBUG_MAKE_INDENT(3); GCriticalSectionLock lock(&pools_lock); - if (!pools_list.contains(pool)) + if (!pools_list.tqcontains(pool)) pools_list.append(pool); return pools_list.size(); } @@ -381,14 +381,14 @@ FCPools::add_pool(const GURL &url, GP pool) if (url.is_local_file_url()) { GPList list; - GPosition pos(map.contains(url)); + GPosition pos(map.tqcontains(url)); if (! pos) { map[url]=list; - pos=map.contains(url); + pos=map.tqcontains(url); } GPList &plist=map[pos]; - if (!plist.contains(pool)) + if (!plist.tqcontains(pool)) plist.append(pool); } clean(); @@ -403,7 +403,7 @@ FCPools::get_pool(const GURL &url, int start, int length) if (url.is_local_file_url()) { GCriticalSectionLock lock(&map_lock); - GPosition pos(map.contains(url)); + GPosition pos(map.tqcontains(url)); if (pos) { GPList &plist=map[pos]; @@ -433,7 +433,7 @@ FCPools::del_pool(const GURL &url, GP pool) if (url.is_local_file_url()) { GPosition pos; - if (map.contains(url, pos)) + if (map.tqcontains(url, pos)) { GPList &list=map[pos]; GPosition list_pos; @@ -458,7 +458,7 @@ FCPools::load_file(const GURL &url) if (url.is_local_file_url()) { GPosition pos; - if (map.contains(url, pos)) + if (map.tqcontains(url, pos)) { // We make here a copy of the list because DataPool::load_file() // will call FCPools::del_pool(), which will modify the list -- cgit v1.2.1