diff options
author | Michele Calgaro <[email protected]> | 2023-12-03 00:49:31 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-05 11:37:18 +0900 |
commit | 37f6b15cfbb9d49b805335435369a3a7544a6b1b (patch) | |
tree | 20698a90fcf11f9196ae2b78b72107651e95e90c /quanta | |
parent | dd931b3ea9ab2bb3effe05d1533f57fd8d7e01ca (diff) | |
download | tdewebdev-37f6b15cfbb9d49b805335435369a3a7544a6b1b.tar.gz tdewebdev-37f6b15cfbb9d49b805335435369a3a7544a6b1b.zip |
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 10ff449a14f1c053295e0b7cfd678bebc11ca880)
Diffstat (limited to 'quanta')
-rw-r--r-- | quanta/parsers/dtd/dtdparser.cpp | 2 | ||||
-rw-r--r-- | quanta/src/document.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/quanta/parsers/dtd/dtdparser.cpp b/quanta/parsers/dtd/dtdparser.cpp index 4f1b9d14..e2511b18 100644 --- a/quanta/parsers/dtd/dtdparser.cpp +++ b/quanta/parsers/dtd/dtdparser.cpp @@ -142,7 +142,7 @@ bool DTDParser::parse(const TQString &targetDir, bool entitiesOnly) TQFile file( DTD::dirName + "entities.tag" ); if ( file.open( IO_WriteOnly ) ) { - DTD::entityStream.setDevice(TQT_TQIODEVICE(&file)); + DTD::entityStream.setDevice(&file); DTD::entityStream.setEncoding(TQTextStream::UnicodeUTF8); DTD::entityStream << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl; DTD::entityStream << "<!DOCTYPE TAGS>" << endl diff --git a/quanta/src/document.cpp b/quanta/src/document.cpp index a659d9cf..6ca6e6ab 100644 --- a/quanta/src/document.cpp +++ b/quanta/src/document.cpp @@ -2236,7 +2236,7 @@ void Document::checkDirtyStatus() const char* c = ""; KMD5 context(c); context.reset(); - context.update(*TQT_TQIODEVICE(&f)); + context.update(f); m_md5sum = context.hexDigest(); f.close(); } @@ -2252,7 +2252,7 @@ void Document::checkDirtyStatus() const char* c = ""; KMD5 context(c); context.reset(); - context.update(*TQT_TQIODEVICE(&f)); + context.update(f); md5sum = context.hexDigest(); kdDebug(24000) << "MD5 sum of current doc: " << m_md5sum << endl; kdDebug(24000) << "MD5 sum of doc on disc : " << md5sum << endl; @@ -2323,7 +2323,7 @@ bool Document::saveAs(const KURL& url) const char* c = ""; KMD5 context(c); context.reset(); - context.update(*TQT_TQIODEVICE(&f)); + context.update(f); m_md5sum = context.hexDigest(); f.close(); } @@ -3181,7 +3181,7 @@ bool Document::openURL(const KURL& url) const char* c = ""; KMD5 context(c); context.reset(); - context.update(*TQT_TQIODEVICE(&f)); + context.update(f); m_md5sum = context.hexDigest(); f.close(); } |