summaryrefslogtreecommitdiffstats
path: root/juk/stringhash.h
diff options
context:
space:
mode:
Diffstat (limited to 'juk/stringhash.h')
-rw-r--r--juk/stringhash.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/juk/stringhash.h b/juk/stringhash.h
index 75992eec..0d3c43bb 100644
--- a/juk/stringhash.h
+++ b/juk/stringhash.h
@@ -16,7 +16,7 @@
#ifndef STRINGHASH_H
#define STRINGHASH_H
-#include <qptrvector.h>
+#include <tqptrvector.h>
#include "filehandle.h"
@@ -49,7 +49,7 @@ public:
*/
bool remove(T value);
- QValueList<T> values() const;
+ TQValueList<T> values() const;
int hash(T key) const;
@@ -108,7 +108,7 @@ protected:
void deleteNode(Node *n);
- QPtrVector<Node> m_table;
+ TQPtrVector<Node> m_table;
static const int m_tableSize = 5003;
};
@@ -116,12 +116,12 @@ protected:
// helper functions
////////////////////////////////////////////////////////////////////////////////
-inline char hashStringAccess(const QString &in, int index)
+inline char hashStringAccess(const TQString &in, int index)
{
return in.unicode()[index].cell();
}
-inline char hashStringAccess(const QCString &in, int index)
+inline char hashStringAccess(const TQCString &in, int index)
{
return in[index];
}
@@ -152,11 +152,11 @@ inline int hashString(const StringType &s)
// StringHash
-template<> inline int Hash<QString>::hash(QString key) const
+template<> inline int Hash<TQString>::hash(TQString key) const
{
return hashString(key) % tableSize();
}
-typedef Hash<QString> StringHash;
+typedef Hash<TQString> StringHash;
// PtrHash
@@ -178,7 +178,7 @@ class FileHandleHash : public Hash<FileHandle>
public:
FileHandleHash() : Hash<FileHandle>() {}
- FileHandle value(const QString &key) const
+ FileHandle value(const TQString &key) const
{
int h = hashString(key) % tableSize();
Node *i = m_table[h];
@@ -268,9 +268,9 @@ bool Hash<T>::remove(T value)
}
template <class T>
-QValueList<T> Hash<T>::values() const
+TQValueList<T> Hash<T>::values() const
{
- QValueList<T> l;
+ TQValueList<T> l;
Node *n;