diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 0254ebaa5e056092461fd585b6851d15faa43035 (patch) | |
tree | 2bf41a1c189b92dc1b9ab89e3ce392f8132214c4 /src/stringset.h | |
parent | fa071926f015f39711632b3fb9fe16004d93d0ec (diff) | |
download | tellico-0254ebaa5e056092461fd585b6851d15faa43035.tar.gz tellico-0254ebaa5e056092461fd585b6851d15faa43035.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/stringset.h')
-rw-r--r-- | src/stringset.h | 4 |
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(); } |