summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;