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/ptrvector.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/ptrvector.h')
| -rw-r--r-- | src/ptrvector.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ptrvector.h b/src/ptrvector.h index a27c884..727c29e 100644 --- a/src/ptrvector.h +++ b/src/ptrvector.h @@ -134,7 +134,7 @@ public: m_baseVector.insert(&m_baseVector[pos.m_index], t); } - Iterator tqfind(Ptr t) { + Iterator find(Ptr t) { for(size_t i = 0; i < count(); ++i) { if(m_baseVector[i].data() == t) { return Iterator(this, i); @@ -143,7 +143,7 @@ public: return end(); } - bool tqcontains(Ptr t) const { return tqFind(m_baseVector.begin(), m_baseVector.end(), Ptr(t)) != m_baseVector.end(); } + bool contains(Ptr t) const { return tqFind(m_baseVector.begin(), m_baseVector.end(), Ptr(t)) != m_baseVector.end(); } bool remove(const Ptr& t) { Ptr* it = tqFind(m_baseVector.begin(), m_baseVector.end(), t); if(it == m_baseVector.end()) return false; @@ -259,7 +259,7 @@ public: void push_back(T* ptr) { m_baseVector.push_back(ptr); } bool remove(T* ptr); bool remove(Iterator it); - bool tqcontains(const T* ptr) const; + bool contains(const T* ptr) const; private: #ifndef NDEBUG @@ -311,7 +311,7 @@ bool Tellico::PtrVector<T>::remove(Iterator it) { } template <class T> -bool Tellico::PtrVector<T>::tqcontains(const T* t) const { +bool Tellico::PtrVector<T>::contains(const T* t) const { if(!t) { return false; } |
