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 | 33881ea4441221b1ca0789a72c4c7249d923a0df (patch) | |
tree | ffe5603da373bb346bb29c8e0f533776f66560a5 /libk3bdevice/k3bdevicemanager.cpp | |
parent | 6d99e1e138ae5aafc10f14682c48221bf563152e (diff) | |
download | k3b-33881ea4441221b1ca0789a72c4c7249d923a0df.tar.gz k3b-33881ea4441221b1ca0789a72c4c7249d923a0df.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3bdevice/k3bdevicemanager.cpp')
-rw-r--r-- | libk3bdevice/k3bdevicemanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libk3bdevice/k3bdevicemanager.cpp b/libk3bdevice/k3bdevicemanager.cpp index fcf5bfc..c417c65 100644 --- a/libk3bdevice/k3bdevicemanager.cpp +++ b/libk3bdevice/k3bdevicemanager.cpp @@ -170,7 +170,7 @@ K3bDevice::Device* K3bDevice::DeviceManager::findDevice( const TQString& devicen } TQPtrListIterator<K3bDevice::Device> it( d->allDevices ); while( it.current() ) { - if( it.current()->deviceNodes().tqcontains(devicename) ) + if( it.current()->deviceNodes().contains(devicename) ) return it.current(); ++it; @@ -271,7 +271,7 @@ void K3bDevice::DeviceManager::LinuxDeviceScan() TQRegExp re("[\t\n:]+"); while( info.readLine( line, 80 ) > 0 ) { - if( line.tqcontains("drive name") > 0 ) { + if( line.contains("drive name") > 0 ) { int i = 1; TQString dev; while( !(dev = line.section(re, i, i)).isEmpty() ) { @@ -285,7 +285,7 @@ void K3bDevice::DeviceManager::LinuxDeviceScan() // each physical device the next line should be better // else if ( dev.startsWith("sr") ) if ( dev.startsWith("sr") ) { - if( addDevice(TQString("/dev/%1").tqarg(dev.tqreplace(TQRegExp("r"),"cd"))) ) + if( addDevice(TQString("/dev/%1").tqarg(dev.replace(TQRegExp("r"),"cd"))) ) devstring += dev + "|"; } ++i; @@ -591,14 +591,14 @@ bool K3bDevice::DeviceManager::saveConfig( KConfig* c ) // remove duplicate entries (caused by buggy old implementations) TQStringList saveDeviceSearchPath; for( TQStringList::const_iterator it = deviceSearchPath.constBegin(); it != deviceSearchPath.constEnd(); ++it ) - if( !saveDeviceSearchPath.tqcontains( *it ) ) + if( !saveDeviceSearchPath.contains( *it ) ) saveDeviceSearchPath.append( *it ); for( TQPtrListIterator<K3bDevice::Device> it( d->allDevices ); *it; ++it ) { K3bDevice::Device* dev = *it; // update device search path - if( !saveDeviceSearchPath.tqcontains( dev->blockDeviceName() ) ) + if( !saveDeviceSearchPath.contains( dev->blockDeviceName() ) ) saveDeviceSearchPath.append( dev->blockDeviceName() ); // save the device type settings |