summaryrefslogtreecommitdiffstats
path: root/lib/store
diff options
context:
space:
mode:
Diffstat (limited to 'lib/store')
-rw-r--r--lib/store/KoDirectoryStore.cpp2
-rw-r--r--lib/store/KoStore.cpp4
-rw-r--r--lib/store/KoTarStore.cpp2
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;
}