summaryrefslogtreecommitdiffstats
path: root/ksvg/impl/LRUCache.h
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 /ksvg/impl/LRUCache.h
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 'ksvg/impl/LRUCache.h')
-rw-r--r--ksvg/impl/LRUCache.h12
1 files changed, 6 insertions, 6 deletions
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<CacheItem> 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<class keyType, class valueType>
void MinOneLRUCache<keyType, valueType>::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<keyType, valueType>::insert(const keyType& key, const valueT
}
template<class keyType, class valueType>
-bool MinOneLRUCache<keyType, valueType>::find(const keyType& key, valueType& result)
+bool MinOneLRUCache<keyType, valueType>::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<keyType, valueType>::find(const keyType& key, valueType& res
}
template<class keyType, class valueType>
-typename MinOneLRUCache<keyType, valueType>::CacheItemList::iterator MinOneLRUCache<keyType, valueType>::find(const keyType& key)
+typename MinOneLRUCache<keyType, valueType>::CacheItemList::iterator MinOneLRUCache<keyType, valueType>::tqfind(const keyType& key)
{
typename CacheItemList::iterator it;