diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-03 00:48:24 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-05 11:57:27 +0900 |
commit | 3849f5c32c10eba032a6738fd47331c0fa6afe1c (patch) | |
tree | 07e4f6637c48685d71eab82a57954de5e0bf3fef /kpovmodeler | |
parent | 32a0eae8ca2e0fc901a389ac35eb788344d75275 (diff) | |
download | tdegraphics-3849f5c32c10eba032a6738fd47331c0fa6afe1c.tar.gz tdegraphics-3849f5c32c10eba032a6738fd47331c0fa6afe1c.zip |
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kpovmodeler')
-rw-r--r-- | kpovmodeler/pmdialogeditbase.cpp | 2 | ||||
-rw-r--r-- | kpovmodeler/pmobjectdrag.cpp | 4 | ||||
-rw-r--r-- | kpovmodeler/pmparser.cpp | 2 | ||||
-rw-r--r-- | kpovmodeler/pmpart.cpp | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/kpovmodeler/pmdialogeditbase.cpp b/kpovmodeler/pmdialogeditbase.cpp index 45b5c828..b958652c 100644 --- a/kpovmodeler/pmdialogeditbase.cpp +++ b/kpovmodeler/pmdialogeditbase.cpp @@ -390,7 +390,7 @@ void PMDialogEditBase::slotTexturePreview( ) buffer.open( IO_WriteOnly ); TQTextStream str( &buffer ); PMPovray31Format format; - PMSerializer* dev = format.newSerializer( TQT_TQIODEVICE(&buffer) ); + PMSerializer* dev = format.newSerializer( &buffer ); PMRenderMode mode; PMObjectList neededDeclares, objectsToCheck; TQPtrDict<PMObject> objectsToSerialize( 101 ); diff --git a/kpovmodeler/pmobjectdrag.cpp b/kpovmodeler/pmobjectdrag.cpp index 23631df0..cd1ee6da 100644 --- a/kpovmodeler/pmobjectdrag.cpp +++ b/kpovmodeler/pmobjectdrag.cpp @@ -73,7 +73,7 @@ PMObjectDrag::PMObjectDrag( PMPart* part, PMObject* object, TQWidget* dragSource TQBuffer buffer( data ); buffer.open( IO_WriteOnly ); - PMSerializer* ser = it.current( )->newSerializer( TQT_TQIODEVICE(&buffer) ); + PMSerializer* ser = it.current( )->newSerializer( &buffer ); if( ser ) { @@ -143,7 +143,7 @@ PMObjectDrag::PMObjectDrag( PMPart* part, const PMObjectList& objList, TQWidget* TQBuffer buffer( data ); buffer.open( IO_WriteOnly ); - PMSerializer* ser = fit.current( )->newSerializer( TQT_TQIODEVICE(&buffer) ); + PMSerializer* ser = fit.current( )->newSerializer( &buffer ); if( ser ) { diff --git a/kpovmodeler/pmparser.cpp b/kpovmodeler/pmparser.cpp index ef921734..4a5f64b0 100644 --- a/kpovmodeler/pmparser.cpp +++ b/kpovmodeler/pmparser.cpp @@ -48,7 +48,7 @@ PMParser::PMParser( PMPart* part, const TQByteArray& array ) m_pPart = part; TQBuffer* buffer = new TQBuffer( array ); buffer->open( IO_ReadOnly ); - m_pDevice = TQT_TQIODEVICE(buffer); + m_pDevice = buffer; m_bDeviceCreated = true; init( ); diff --git a/kpovmodeler/pmpart.cpp b/kpovmodeler/pmpart.cpp index 8198a9d7..452f2bac 100644 --- a/kpovmodeler/pmpart.cpp +++ b/kpovmodeler/pmpart.cpp @@ -951,7 +951,7 @@ bool PMPart::exportPovray( const KURL& url ) if( ok ) { PMPovray35Format format; - PMSerializer* dev = format.newSerializer( TQT_TQIODEVICE(file) ); + PMSerializer* dev = format.newSerializer( file ); dev->serialize( m_pScene ); delete dev; @@ -1369,7 +1369,7 @@ void PMPart::slotFileImport( ) TQFile file( fileName ); if( file.open( IO_ReadOnly ) ) { - PMParser* newParser = selectedFormat->newParser( this, TQT_TQIODEVICE(&file) ); + PMParser* newParser = selectedFormat->newParser( this, &file ); if( newParser ) { if( m_pActiveObject ) @@ -1404,7 +1404,7 @@ void PMPart::slotFileExport( ) TQBuffer buffer( baData ); buffer.open( IO_WriteOnly ); - PMSerializer* newSer = selectedFormat->newSerializer( TQT_TQIODEVICE(&buffer) ); + PMSerializer* newSer = selectedFormat->newSerializer( &buffer ); if( newSer ) { newSer->serialize( m_pScene ); @@ -2713,7 +2713,7 @@ void PMPart::slotRender( ) TQBuffer buffer( a ); buffer.open( IO_WriteOnly ); PMPovray35Format format; - PMSerializer* dev = format.newSerializer( TQT_TQIODEVICE(&buffer) ); + PMSerializer* dev = format.newSerializer( &buffer ); dev->serialize( m_pScene ); delete dev; |