From 0254ebaa5e056092461fd585b6851d15faa43035 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- src/ptrvector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ptrvector.h') 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::remove(Iterator it) { } template -bool Tellico::PtrVector::tqcontains(const T* t) const { +bool Tellico::PtrVector::contains(const T* t) const { if(!t) { return false; } -- cgit v1.2.3