summaryrefslogtreecommitdiffstats
path: root/kviewshell/plugins/djvu/libdjvu/DataPool.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kviewshell/plugins/djvu/libdjvu/DataPool.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
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
Diffstat (limited to 'kviewshell/plugins/djvu/libdjvu/DataPool.cpp')
-rw-r--r--kviewshell/plugins/djvu/libdjvu/DataPool.cpp14
1 files changed, 7 insertions, 7 deletions
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<DataPool> &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<DataPool> pool)
if (url.is_local_file_url())
{
GPList<DataPool> 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<DataPool> &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<DataPool> &plist=map[pos];
@@ -433,7 +433,7 @@ FCPools::del_pool(const GURL &url, GP<DataPool> pool)
if (url.is_local_file_url())
{
GPosition pos;
- if (map.contains(url, pos))
+ if (map.tqcontains(url, pos))
{
GPList<DataPool> &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