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 --- ksvg/impl/LRUCache.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ksvg/impl/LRUCache.h') diff --git a/ksvg/impl/LRUCache.h b/ksvg/impl/LRUCache.h index f9045262..ef51e1d8 100644 --- a/ksvg/impl/LRUCache.h +++ b/ksvg/impl/LRUCache.h @@ -36,7 +36,7 @@ public: virtual ~MinOneLRUCache() {} void insert(const keyType& key, const valueType& value, int cost); - bool find(const keyType& key, valueType& result); + bool tqfind(const keyType& key, valueType& result); void setMaxTotalCost(int maxTotalCost); int maxTotalCost() const { return m_maxTotalCost; } @@ -63,7 +63,7 @@ protected: typedef TQValueList CacheItemList; - typename CacheItemList::iterator find(const keyType& key); + typename CacheItemList::iterator tqfind(const keyType& key); void enforceCostConstraint(); CacheItemList m_items; @@ -74,7 +74,7 @@ protected: template void MinOneLRUCache::insert(const keyType& key, const valueType& value, int cost) { - typename CacheItemList::iterator it = find(key); + typename CacheItemList::iterator it = tqfind(key); if(it != m_items.end()) { @@ -91,10 +91,10 @@ void MinOneLRUCache::insert(const keyType& key, const valueT } template -bool MinOneLRUCache::find(const keyType& key, valueType& result) +bool MinOneLRUCache::tqfind(const keyType& key, valueType& result) { bool foundKey = false; - typename CacheItemList::iterator it = find(key); + typename CacheItemList::iterator it = tqfind(key); if(it != m_items.end()) { @@ -115,7 +115,7 @@ bool MinOneLRUCache::find(const keyType& key, valueType& res } template -typename MinOneLRUCache::CacheItemList::iterator MinOneLRUCache::find(const keyType& key) +typename MinOneLRUCache::CacheItemList::iterator MinOneLRUCache::tqfind(const keyType& key) { typename CacheItemList::iterator it; -- cgit v1.2.1