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 | acd0828c7a0c5d67f4474a82af93e5ff52cfb9dc (patch) | |
tree | bfd1de1a52361a3b1611dad9dc499b84026ebc15 /virt | |
parent | aafc63ac622acd3272fdceabffe3828142f41d73 (diff) | |
download | krusader-acd0828c7a0c5d67f4474a82af93e5ff52cfb9dc.tar.gz krusader-acd0828c7a0c5d67f4474a82af93e5ff52cfb9dc.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krusader@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'virt')
-rw-r--r-- | virt/virt.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/virt/virt.cc b/virt/virt.cc index b6f34ee..5fdd32c 100644 --- a/virt/virt.cc +++ b/virt/virt.cc @@ -87,7 +87,7 @@ void VirtProtocol::del(KURL const & /*url */, bool /* isFile */ ){ void VirtProtocol::copy( const KURL &src, const KURL &dest, int /* permissions */, bool /* overwrite */ ){ TQString path = dest.path( -1 ).mid( 1 ); - path = path.left(path.tqfindRev("/")); + path = path.left(path.findRev("/")); if ( path.isEmpty() ) path = "/"; if( addDir(path) ){ @@ -103,9 +103,9 @@ bool VirtProtocol::addDir(TQString& path){ if( kioVirtDict[ path ] ) return true; TQString updir; - if( !path.tqcontains("/") ) updir = "/"; - else updir = path.left(path.tqfindRev("/")); - TQString name = path.mid(path.tqfindRev("/")+1); + if( !path.contains("/") ) updir = "/"; + else updir = path.left(path.findRev("/")); + TQString name = path.mid(path.findRev("/")+1); if( addDir(updir) ){ KURL url; @@ -114,7 +114,7 @@ bool VirtProtocol::addDir(TQString& path){ kioVirtDict[ updir ]->append( url ); KURL::List* temp = new KURL::List(); - kioVirtDict.tqreplace( path, temp ); + kioVirtDict.replace( path, temp ); return true; } @@ -254,12 +254,12 @@ bool VirtProtocol::load(){ KURL::List* urlList; for ( it = map.begin(); it != map.end(); ++it ) { urlList = new KURL::List( db->readListEntry(it.key()) ); - kioVirtDict.tqreplace( it.key(),urlList ); + kioVirtDict.replace( it.key(),urlList ); } if( !kioVirtDict["/" ]){ urlList = new KURL::List(); - kioVirtDict.tqreplace( "/", urlList ); + kioVirtDict.replace( "/", urlList ); } unlock(); |