diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-03 00:36:33 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-05 11:33:58 +0900 |
| commit | 9abcf51de91242d1ab70230ba46abd2108416edf (patch) | |
| tree | b06138af56a2addecdb37e556deb89f4972d59b8 /lib/store | |
| parent | 5761876d3a71e9b3c5a93b5b535b071d2240b08e (diff) | |
| download | koffice-9abcf51d.tar.gz koffice-9abcf51d.zip | |
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fb6b4d204d1155fa3a1bc7a128873340db1524f7)
Diffstat (limited to 'lib/store')
| -rw-r--r-- | lib/store/KoDirectoryStore.cpp | 2 | ||||
| -rw-r--r-- | lib/store/KoStore.cpp | 4 | ||||
| -rw-r--r-- | lib/store/KoTarStore.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/store/KoDirectoryStore.cpp b/lib/store/KoDirectoryStore.cpp index 894a7b392..a464db056 100644 --- a/lib/store/KoDirectoryStore.cpp +++ b/lib/store/KoDirectoryStore.cpp @@ -71,7 +71,7 @@ bool KoDirectoryStore::openReadOrWrite( const TQString& name, int iomode ) if ( !ret ) return false; } - m_stream = TQT_TQIODEVICE(new TQFile( m_basePath + name )); + m_stream = new TQFile( m_basePath + name ); if ( !m_stream->open( iomode ) ) { delete m_stream; diff --git a/lib/store/KoStore.cpp b/lib/store/KoStore.cpp index 221c6b5cc..fa6e88d10 100644 --- a/lib/store/KoStore.cpp +++ b/lib/store/KoStore.cpp @@ -69,7 +69,7 @@ KoStore* KoStore::createStore( const TQString& fileName, Mode mode, const TQCStr { TQFile file( fileName ); if ( file.open( IO_ReadOnly ) ) - backend = determineBackend( TQT_TQIODEVICE(&file) ); + backend = determineBackend( &file ); else backend = DefaultFormat; // will create a "bad" store (bad()==true) } @@ -143,7 +143,7 @@ KoStore* KoStore::createStore( TQWidget* window, const KURL& url, Mode mode, con TQFile file( tmpFile ); if ( file.open( IO_ReadOnly ) ) { - backend = determineBackend( TQT_TQIODEVICE(&file) ); + backend = determineBackend( &file ); file.close(); } } diff --git a/lib/store/KoTarStore.cpp b/lib/store/KoTarStore.cpp index d4e6667af..160258d95 100644 --- a/lib/store/KoTarStore.cpp +++ b/lib/store/KoTarStore.cpp @@ -126,7 +126,7 @@ bool KoTarStore::openWrite( const TQString& /*name*/ ) { // Prepare memory buffer for writing m_byteArray.resize( 0 ); - m_stream = TQT_TQIODEVICE(new TQBuffer( m_byteArray )); + m_stream = new TQBuffer( m_byteArray ); m_stream->open( IO_WriteOnly ); return true; } |
