diff options
Diffstat (limited to 'amarok/src/device/massstorage/massstoragedevicehandler.cpp')
-rw-r--r-- | amarok/src/device/massstorage/massstoragedevicehandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/amarok/src/device/massstorage/massstoragedevicehandler.cpp b/amarok/src/device/massstorage/massstoragedevicehandler.cpp index a8475796..57b0c3d4 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';" ).tqarg( m->id() ) ); + "AND uuid = '%1';" ).arg( 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;" ).tqarg( ids[0] ).tqarg( m->mountPoint() ) ); + "id = %1;" ).arg( ids[0] ).arg( 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' );" ) - .tqarg( m->id() ) - .tqarg( m->mountPoint() ), "devices" ); + .arg( m->id() ) + .arg( m->mountPoint() ), "devices" ); if ( id == 0 ) { warning() << "Inserting into devices failed for type=uuid, uuid=" << m->id() << endl; |