summaryrefslogtreecommitdiffstats
path: root/juk/stringhash.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /juk/stringhash.h
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;