Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/54/head
Michele Calgaro 5 months ago
parent 079f0cc9a5
commit 8acb66d550
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -108,7 +108,7 @@ CollectionScanner::doJob() //SLOT
<< endl;
else {
TQTextStream logStream;
logStream.setDevice(TQT_TQIODEVICE(&logFile));
logStream.setDevice(&logFile);
logStream.setEncoding(TQTextStream::UnicodeUTF8);
lastFile = logStream.read();
logFile.close();
@ -120,7 +120,7 @@ CollectionScanner::doJob() //SLOT
<< " read-only" << endl;
else {
TQTextStream folderStream;
folderStream.setDevice(TQT_TQIODEVICE(&folderFile));
folderStream.setDevice(&folderFile);
folderStream.setEncoding(TQTextStream::UnicodeUTF8);
entries = TQStringList::split( "\n", folderStream.read() );
}

@ -2995,7 +2995,7 @@ TQString CurrentTrackJob::statsHTML( int score, int rating, bool statsbox ) //st
fullStarIO.setFormat( "PNG" );
TQBuffer fullStarBuf;
fullStarBuf.open( IO_WriteOnly );
fullStarIO.setIODevice( TQT_TQIODEVICE(&fullStarBuf) );
fullStarIO.setIODevice( &fullStarBuf );
fullStarIO.write();
fullStarBuf.close();
TQCString fullStar = KCodecs::base64Encode( fullStarBuf.buffer(), true );
@ -3010,7 +3010,7 @@ TQString CurrentTrackJob::statsHTML( int score, int rating, bool statsbox ) //st
halfStarIO.setFormat( "PNG" );
TQBuffer halfStarBuf;
halfStarBuf.open( IO_WriteOnly );
halfStarIO.setIODevice( TQT_TQIODEVICE(&halfStarBuf) );
halfStarIO.setIODevice( &halfStarBuf );
halfStarIO.write();
halfStarBuf.close();
TQCString halfStar = KCodecs::base64Encode( halfStarBuf.buffer(), true );

@ -817,7 +817,7 @@ DaapDownloader::doJob()
KTempFile* tempNewFile = new KTempFile( TQString(), '.' + TQFileInfo( (*urlIt).path() ).extension() );
tempNewFile->setAutoDelete( true );
m_tempFileList.append( tempNewFile );
http->getDaap( (*urlIt).path() + (*urlIt).query(), TQT_TQIODEVICE(tempNewFile->file()) );
http->getDaap( (*urlIt).path() + (*urlIt).query(), tempNewFile->file() );
while( !m_ready && !isAborted() )
{
msleep( 100 ); //Sleep 100 msec

@ -47,7 +47,7 @@ TQDataStream&
ContentFetcher::results()
{
TQBuffer* bytes = new TQBuffer( readAll() );
TQIODevice* stream = KFilterDev::device( TQT_TQIODEVICE(bytes), "application/x-gzip", false );
TQIODevice* stream = KFilterDev::device( bytes, "application/x-gzip", false );
stream->open( IO_ReadOnly );
TQDataStream* ds = new TQDataStream( stream );
return *ds;

Loading…
Cancel
Save