summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:36:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-05 11:33:25 +0900
commitabcd9a45606e030167c0bb35db57b2b5fc67c9a7 (patch)
treec38d549a91de30f3561851f93b00abb942dec81f
parent1d47a02e82cb7f8d6df0c9f3c2560d250824e54a (diff)
downloadkpilot-abcd9a45606e030167c0bb35db57b2b5fc67c9a7.tar.gz
kpilot-abcd9a45606e030167c0bb35db57b2b5fc67c9a7.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6ff35b7a8dda4f76b9dee42982653a86d3ef16d8)
-rw-r--r--conduits/docconduit/doc-conduit.cpp4
-rw-r--r--kpilot/logFile.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/conduits/docconduit/doc-conduit.cpp b/conduits/docconduit/doc-conduit.cpp
index 294b31a..7f375d4 100644
--- a/conduits/docconduit/doc-conduit.cpp
+++ b/conduits/docconduit/doc-conduit.cpp
@@ -163,7 +163,7 @@ bool DOCConduit::pcTextChanged(TQString txtfn)
KMD5 docmd5;
TQFile txtfile(txtfn);
if (txtfile.open(IO_ReadOnly)){
- docmd5.update(*TQT_TQIODEVICE(&txtfile));
+ docmd5.update(txtfile);
TQString thisDigest(docmd5.hexDigest() /* .data() */);
#ifdef DEBUG
DEBUGKPILOT<<"New digest is "<<thisDigest<<endl;
@@ -362,7 +362,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo)
KMD5 docmd5;
TQFile txtfile(docconverter.txtFilename());
if (txtfile.open(IO_ReadOnly)) {
- docmd5.update(*TQT_TQIODEVICE(&txtfile));
+ docmd5.update(txtfile);
TQString thisDigest(docmd5.hexDigest() /* .data() */);
DOCConduitSettings::self()->config()->writeEntry(docconverter.txtFilename(), thisDigest);
DOCConduitSettings::self()->config()->sync();
diff --git a/kpilot/logFile.cpp b/kpilot/logFile.cpp
index 3548bcb..c22bdc3 100644
--- a/kpilot/logFile.cpp
+++ b/kpilot/logFile.cpp
@@ -68,7 +68,7 @@ LogFile::LogFile() : DCOPObject("LogIface"), TQObject(), fOutfile(0L), fSyncing(
}
fSyncing = true;
- fLogStream.setDevice(TQT_TQIODEVICE(fOutfile));
+ fLogStream.setDevice(fOutfile);
fLogStream<<(CSL1("KPilot HotSync log, %1").arg(TQDateTime::currentDateTime().toString()))<<endl<<endl<<endl;
fLogStream<<(CSL1("Version: KPilot %1").arg(TQString::fromLatin1(KPILOT_VERSION)))<<endl;