diff --git a/src/logger.cpp b/src/logger.cpp index 404c1db..072c4cf 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -25,7 +25,7 @@ Logger::Logger() (*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").arg((*item)->id)) ); // TODO error handling (*item)->file.open( IO_WriteOnly ); - (*item)->textStream.setDevice( TQT_TQIODEVICE(&((*item)->file)) ); + (*item)->textStream.setDevice( &((*item)->file) ); srand( (unsigned)time(NULL) ); } @@ -55,7 +55,7 @@ int Logger::registerProcess( const TQString& filename ) (*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").arg((*item)->id)) ); // TODO error handling (*item)->file.open( IO_WriteOnly ); - (*item)->textStream.setDevice( TQT_TQIODEVICE(&((*item)->file)) ); + (*item)->textStream.setDevice( &((*item)->file) ); emit updateProcess( (*item)->id );