From 0813b39aed2cf4c84157a22c4c9594336d93d412 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/kdesdk@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- cervisia/cvsservice/cvsloginjob.cpp | 8 ++++---- cervisia/cvsservice/repository.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cervisia/cvsservice') diff --git a/cervisia/cvsservice/cvsloginjob.cpp b/cervisia/cvsservice/cvsloginjob.cpp index 0288df0e..ad6f9176 100644 --- a/cervisia/cvsservice/cvsloginjob.cpp +++ b/cervisia/cvsservice/cvsloginjob.cpp @@ -97,15 +97,15 @@ bool CvsLoginJob::execute() kdDebug(8051) << "process output = " << line << endl; // retrieve repository from 'Logging in to'-line - if( line.tqcontains(LOGIN_PHRASE) ) + if( line.contains(LOGIN_PHRASE) ) { - repository = line.remove(0, line.tqfind(":pserver:")); + repository = line.remove(0, line.find(":pserver:")); continue; } // process asks for the password // search case insensitive as cvs and cvsnt use different capitalization - if( line.tqcontains(PASS_PHRASE, false) ) + if( line.contains(PASS_PHRASE, false) ) { kdDebug(8051) << "process waits for the password." << endl; @@ -123,7 +123,7 @@ bool CvsLoginJob::execute() m_Proc->writeLine(password); // wait for the result - while( !line.tqcontains(FAILURE_PHRASE) ) + while( !line.contains(FAILURE_PHRASE) ) { line = m_Proc->readLine(); if( line.isNull() ) diff --git a/cervisia/cvsservice/repository.cpp b/cervisia/cvsservice/repository.cpp index 2ac4c241..822a77ae 100644 --- a/cervisia/cvsservice/repository.cpp +++ b/cervisia/cvsservice/repository.cpp @@ -157,7 +157,7 @@ bool Repository::setWorkingCopy(const TQString& dirName) // add identities (ssh-add) to ssh-agent // TODO CL make sure this is called only once - if( d->location.tqcontains(":ext:", false) > 0 ) + if( d->location.contains(":ext:", false) > 0 ) { SshAgent ssh; ssh.addSshIdentities(); @@ -227,7 +227,7 @@ void Repository::Private::readConfig() if( !config->hasGroup(repositoryGroup) ) { // find the position of the first path separator - const int insertPos = repositoryGroup.tqfind('/'); + const int insertPos = repositoryGroup.find('/'); if( insertPos > 0 ) { // add port to location -- cgit v1.2.1