summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoOasisStore.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:36:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-05 11:33:58 +0900
commit9abcf51de91242d1ab70230ba46abd2108416edf (patch)
treeb06138af56a2addecdb37e556deb89f4972d59b8 /lib/kofficecore/KoOasisStore.cpp
parent5761876d3a71e9b3c5a93b5b535b071d2240b08e (diff)
downloadkoffice-9abcf51de91242d1ab70230ba46abd2108416edf.tar.gz
koffice-9abcf51de91242d1ab70230ba46abd2108416edf.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/kofficecore/KoOasisStore.cpp')
-rw-r--r--lib/kofficecore/KoOasisStore.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kofficecore/KoOasisStore.cpp b/lib/kofficecore/KoOasisStore.cpp
index c170297e9..235d5f76a 100644
--- a/lib/kofficecore/KoOasisStore.cpp
+++ b/lib/kofficecore/KoOasisStore.cpp
@@ -78,7 +78,7 @@ KoXmlWriter* KoOasisStore::bodyWriter()
Q_ASSERT( !m_contentTmpFile );
m_contentTmpFile = new KTempFile;
m_contentTmpFile->setAutoDelete( true );
- m_bodyWriter = new KoXmlWriter( TQT_TQIODEVICE(m_contentTmpFile->file()), 1 );
+ m_bodyWriter = new KoXmlWriter( m_contentTmpFile->file(), 1 );
}
return m_bodyWriter;
}
@@ -92,7 +92,7 @@ bool KoOasisStore::closeContentWriter()
// copy over the contents from the tempfile to the real one
TQFile* tmpFile = m_contentTmpFile->file();
tmpFile->close();
- m_contentWriter->addCompleteElement( TQT_TQIODEVICE(tmpFile) );
+ m_contentWriter->addCompleteElement( tmpFile );
m_contentTmpFile->close();
delete m_contentTmpFile; m_contentTmpFile = 0;
@@ -113,7 +113,7 @@ KoXmlWriter* KoOasisStore::manifestWriter( const char* mimeType )
// the pointer to the buffer is already stored in the KoXmlWriter, no need to store it here as well
TQBuffer *manifestBuffer = new TQBuffer;
manifestBuffer->open( IO_WriteOnly );
- m_manifestWriter = new KoXmlWriter( TQT_TQIODEVICE(manifestBuffer) );
+ m_manifestWriter = new KoXmlWriter( manifestBuffer );
m_manifestWriter->startDocument( "manifest:manifest" );
m_manifestWriter->startElement( "manifest:manifest" );
m_manifestWriter->addAttribute( "xmlns:manifest", KoXmlNS::manifest );
@@ -126,7 +126,7 @@ bool KoOasisStore::closeManifestWriter()
{
m_manifestWriter->endElement();
m_manifestWriter->endDocument();
- TQBuffer* buffer = TQT_TQBUFFER( static_cast<TQIODevice*>(m_manifestWriter->device()) );
+ TQBuffer* buffer = static_cast<TQBuffer*>(m_manifestWriter->device());
delete m_manifestWriter; m_manifestWriter = 0;
bool ok = false;
if ( m_store->open( "META-INF/manifest.xml" ) )