|
|
@ -69,7 +69,7 @@ KoStore* KoStore::createStore( const TQString& fileName, Mode mode, const TQCStr
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQFile file( fileName );
|
|
|
|
TQFile file( fileName );
|
|
|
|
if ( file.open( IO_ReadOnly ) )
|
|
|
|
if ( file.open( IO_ReadOnly ) )
|
|
|
|
backend = determineBackend( TQT_TQIODEVICE(&file) );
|
|
|
|
backend = determineBackend( &file );
|
|
|
|
else
|
|
|
|
else
|
|
|
|
backend = DefaultFormat; // will create a "bad" store (bad()==true)
|
|
|
|
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 );
|
|
|
|
TQFile file( tmpFile );
|
|
|
|
if ( file.open( IO_ReadOnly ) )
|
|
|
|
if ( file.open( IO_ReadOnly ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
backend = determineBackend( TQT_TQIODEVICE(&file) );
|
|
|
|
backend = determineBackend( &file );
|
|
|
|
file.close();
|
|
|
|
file.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|