summaryrefslogtreecommitdiffstats
path: root/src/stringset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stringset.h')
-rw-r--r--src/stringset.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stringset.h b/src/stringset.h
index 68b27d5..934581b 100644
--- a/src/stringset.h
+++ b/src/stringset.h
@@ -28,7 +28,7 @@ public:
StringSet(int size = 17) : m_dict(size) {}
// replace instead of insert, to ensure unique keys
- void add(const TQString& val) { if(!val.isEmpty()) m_dict.tqreplace(val, reinterpret_cast<const int *>(1)); }
+ void add(const TQString& val) { if(!val.isEmpty()) m_dict.replace(val, reinterpret_cast<const int *>(1)); }
void add(const TQStringList& vals) {
for(TQStringList::ConstIterator it = vals.begin(), end = vals.end(); it != end; ++it) {
add(*it);
@@ -36,7 +36,7 @@ public:
}
bool remove(const TQString& val) { return !val.isEmpty() && m_dict.remove(val); }
void clear() { m_dict.clear(); }
- bool has(const TQString& val) const { return !val.isEmpty() && (m_dict.tqfind(val) != 0); }
+ bool has(const TQString& val) const { return !val.isEmpty() && (m_dict.find(val) != 0); }
bool isEmpty() const { return m_dict.isEmpty(); }
uint count() const { return m_dict.count(); }