From b6edfe41c9395f2e20784cbf0e630af6426950a3 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/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kplato/kptresource.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kplato/kptresource.cc') diff --git a/kplato/kptresource.cc b/kplato/kptresource.cc index 78834b4a..1b732e87 100644 --- a/kplato/kptresource.cc +++ b/kplato/kptresource.cc @@ -106,7 +106,7 @@ void ResourceGroup::removeResource(Resource *resource) { } Resource *ResourceGroup::takeResource(Resource *resource) { - return m_resources.take(m_resources.tqfindRef(resource)); + return m_resources.take(m_resources.findRef(resource)); } void ResourceGroup::removeResource(int) { @@ -457,7 +457,7 @@ void Resource::takeSchedule(const Schedule *schedule) { void Resource::addSchedule(Schedule *schedule) { if (schedule == 0) return; - m_schedules.tqreplace(schedule->id(), schedule); + m_schedules.replace(schedule->id(), schedule); } ResourceSchedule *Resource::createSchedule(TQString name, int type, long id) { @@ -791,10 +791,10 @@ void ResourceGroupRequest::addResourceRequest(ResourceRequest *request) { ResourceRequest *ResourceGroupRequest::takeResourceRequest(ResourceRequest *request) { if (request) request->unregisterRequest(); - return m_resourceRequests.take(m_resourceRequests.tqfindRef(request)); + return m_resourceRequests.take(m_resourceRequests.findRef(request)); } -ResourceRequest *ResourceGroupRequest::tqfind(Resource *resource) const { +ResourceRequest *ResourceGroupRequest::find(Resource *resource) const { TQPtrListIterator it(m_resourceRequests); for (; it.current(); ++it) if (it.current()->resource() == resource) @@ -1075,7 +1075,7 @@ ResourceRequestCollection::~ResourceRequestCollection() { m_requests.clear(); } -ResourceGroupRequest *ResourceRequestCollection::tqfind(ResourceGroup *group) const { +ResourceGroupRequest *ResourceRequestCollection::find(ResourceGroup *group) const { TQPtrListIterator it(m_requests); for (; it.current(); ++it) { if (it.current()->group() == group) @@ -1085,11 +1085,11 @@ ResourceGroupRequest *ResourceRequestCollection::tqfind(ResourceGroup *group) co } -ResourceRequest *ResourceRequestCollection::tqfind(Resource *resource) const { +ResourceRequest *ResourceRequestCollection::find(Resource *resource) const { ResourceRequest *req = 0; TQPtrListIterator it(m_requests); for (; !req && it.current(); ++it) { - req = it.current()->tqfind(resource); + req = it.current()->find(resource); } return req; } -- cgit v1.2.1