From 530df121961f2e35d26b80a43dab57c74e375657 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 3 Dec 2023 00:36:07 +0900 Subject: Replaced various '#define' with actual strings - part 5 Signed-off-by: Michele Calgaro --- src/logger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- cgit v1.2.1