From d98fea1f859d23e1b1220a65d7a8eda3b757fd08 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/piklab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/common/global/purl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/common/global') diff --git a/src/common/global/purl.cpp b/src/common/global/purl.cpp index 265d5a7..ab1f8da 100644 --- a/src/common/global/purl.cpp +++ b/src/common/global/purl.cpp @@ -53,7 +53,7 @@ private: TQString PURL::Private::getWindowsDrivePath(char drive) { #if defined(Q_OS_UNIX) - if ( !_winDrives.tqcontains(drive) ) { + if ( !_winDrives.contains(drive) ) { TQStringList args; args += "-u"; TQString s; @@ -75,7 +75,7 @@ TQString PURL::Private::getWindowsDrivePath(char drive) bool PURL::Private::checkCachedPath(TQString &filepath) const { - if ( !_winPaths.tqcontains(filepath) ) return false; + if ( !_winPaths.contains(filepath) ) return false; filepath = _winPaths[filepath]; return true; } @@ -92,13 +92,13 @@ TQString PURL::Private::convertWindowsFilepath(const TQString &filepath) if ( filepath[0]=='\\' ) { TQString tmp = filepath; if ( checkCachedPath(tmp) ) return tmp; - return cachePath(filepath, convertWindowsShortFilepath(tmp.tqreplace('\\', "/"))); + return cachePath(filepath, convertWindowsShortFilepath(tmp.replace('\\', "/"))); } // appears to be a windows path with a drive if ( (filepath.length()>=2 && filepath[0].isLetter() && filepath[1]==':') ) { TQString tmp = filepath; if ( checkCachedPath(tmp) ) return tmp; - tmp = getWindowsDrivePath(filepath[0]) + tmp.mid(2).tqreplace('\\', "/"); + tmp = getWindowsDrivePath(filepath[0]) + tmp.mid(2).replace('\\', "/"); return cachePath(filepath, convertWindowsShortFilepath(tmp)); } return filepath; -- cgit v1.2.1