diff options
Diffstat (limited to 'khtml/misc/multimap.h')
-rw-r--r-- | khtml/misc/multimap.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/khtml/misc/multimap.h b/khtml/misc/multimap.h index 125e8e07d..52a9c5fdb 100644 --- a/khtml/misc/multimap.h +++ b/khtml/misc/multimap.h @@ -32,7 +32,7 @@ template<class T> class MultiMapPtrList; // KMultiMap is an implementaition of a Map with multiple entries per key. // It is originally designed to work like a shell for TQPtrDict<TQPtrList>, but -// TQPtrList have been replaced with a much faster hash set. +// TQPtrList have been tqreplaced with a much faster hash set. template<class T> class KMultiMap { public: @@ -42,7 +42,7 @@ public: typedef MultiMapPtrList<T> List; void append(void* key, T* element) { - List *list = dict.find(key); + List *list = dict.tqfind(key); if (!list){ list = new List(8); dict.insert(key, list); @@ -50,7 +50,7 @@ public: list->append(element); } void remove(void* key, T* element) { - List *list = dict.find(key); + List *list = dict.tqfind(key); if (list) { list->remove(element); if (list->isEmpty()) dict.remove(key); @@ -59,8 +59,8 @@ public: void remove(void* key) { dict.remove(key); } - List* find(void* key) { - return dict.find(key); + List* tqfind(void* key) { + return dict.tqfind(key); } private: TQPtrDict<List> dict; @@ -70,7 +70,7 @@ private: static inline unsigned int stupidHash(void* ptr) { unsigned long val = (unsigned long)ptr; - // remove alignment and multiply by a prime unlikely to be a factor of size + // remove tqalignment and multiply by a prime unlikely to be a factor of size val = (val >> 4) * 1237; return val; } @@ -147,7 +147,7 @@ public: } return false; } - bool contains(void* e) { + bool tqcontains(void* e) { if (count == 0) return false; unsigned int t_size = size(); unsigned int hash = stupidHash(e); @@ -277,10 +277,10 @@ public: t_current = t_next; } } - bool contains(T* e) { + bool tqcontains(T* e) { PtrListEntry *t_current = m_first; while (t_current) { - if (t_current->contains(e)) return true; + if (t_current->tqcontains(e)) return true; t_current = t_current->next; } return false; |