summaryrefslogtreecommitdiffstats
path: root/amarok/src/device/massstorage/massstoragedevicehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/device/massstorage/massstoragedevicehandler.cpp')
-rw-r--r--amarok/src/device/massstorage/massstoragedevicehandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/amarok/src/device/massstorage/massstoragedevicehandler.cpp b/amarok/src/device/massstorage/massstoragedevicehandler.cpp
index 57b0c3d4..63965e06 100644
--- a/amarok/src/device/massstorage/massstoragedevicehandler.cpp
+++ b/amarok/src/device/massstorage/massstoragedevicehandler.cpp
@@ -126,20 +126,20 @@ DeviceHandler * MassStorageDeviceHandlerFactory::createHandler( const Medium * m
{
TQStringList ids = CollectionDB::instance()->query( TQString( "SELECT id, label, lastmountpoint "
"FROM devices WHERE type = 'uuid' "
- "AND uuid = '%1';" ).arg( m->id() ) );
+ "AND uuid = '%1';" ).tqarg( m->id() ) );
if ( ids.size() == 3 )
{
debug() << "Found existing UUID config for ID " << ids[0] << " , uuid " << m->id() << endl;
CollectionDB::instance()->query( TQString( "UPDATE devices SET lastmountpoint = '%2' WHERE "
- "id = %1;" ).arg( ids[0] ).arg( m->mountPoint() ) );
+ "id = %1;" ).tqarg( ids[0] ).tqarg( m->mountPoint() ) );
return new MassStorageDeviceHandler( ids[0].toInt(), m->mountPoint(), m->id() );
}
else
{
int id = CollectionDB::instance()->insert( TQString( "INSERT INTO devices( type, uuid, lastmountpoint ) "
"VALUES ( 'uuid', '%1', '%2' );" )
- .arg( m->id() )
- .arg( m->mountPoint() ), "devices" );
+ .tqarg( m->id() )
+ .tqarg( m->mountPoint() ), "devices" );
if ( id == 0 )
{
warning() << "Inserting into devices failed for type=uuid, uuid=" << m->id() << endl;
@@ -154,9 +154,9 @@ bool
MassStorageDeviceHandlerFactory::excludedFilesystem( const TQString &fstype ) const
{
return fstype.isEmpty() ||
- fstype.find( "smb" ) != -1 ||
- fstype.find( "cifs" ) != -1 ||
- fstype.find( "nfs" ) != -1 ||
+ fstype.tqfind( "smb" ) != -1 ||
+ fstype.tqfind( "cifs" ) != -1 ||
+ fstype.tqfind( "nfs" ) != -1 ||
fstype == "udf" ||
fstype == "iso9660" ;
}