summaryrefslogtreecommitdiffstats
path: root/amarok/src/device/nfs/nfsdevicehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/device/nfs/nfsdevicehandler.cpp')
-rw-r--r--amarok/src/device/nfs/nfsdevicehandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/amarok/src/device/nfs/nfsdevicehandler.cpp b/amarok/src/device/nfs/nfsdevicehandler.cpp
index ac831d7d..ac7a3de3 100644
--- a/amarok/src/device/nfs/nfsdevicehandler.cpp
+++ b/amarok/src/device/nfs/nfsdevicehandler.cpp
@@ -135,13 +135,13 @@ NfsDeviceHandlerFactory::createHandler( const Medium * m ) const
TQStringList ids = CollectionDB::instance()->query( TQString( "SELECT id, label, lastmountpoint "
"FROM devices WHERE type = 'nfs' "
"AND servername = '%1' AND sharename = '%2';" )
- .arg( server )
- .arg( share ) );
+ .tqarg( server )
+ .tqarg( share ) );
if ( ids.size() == 3 )
{
debug() << "Found existing NFS config for ID " << ids[0] << " , server " << server << " ,share " << share << 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 NfsDeviceHandler( ids[0].toInt(), server, share, m->mountPoint() );
}
else
@@ -149,9 +149,9 @@ NfsDeviceHandlerFactory::createHandler( const Medium * m ) const
int id = CollectionDB::instance()->insert( TQString( "INSERT INTO devices"
"( type, servername, sharename, lastmountpoint ) "
"VALUES ( 'nfs', '%1', '%2', '%3' );" )
- .arg( server )
- .arg( share )
- .arg( m->mountPoint() ), "devices" );
+ .tqarg( server )
+ .tqarg( share )
+ .tqarg( m->mountPoint() ), "devices" );
if ( id == 0 )
{
warning() << "Inserting into devices failed for type=nfs, server=" << server << ", share=" << share << endl;