Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/19/head
Michele Calgaro 12 months ago
parent 9beef848a9
commit 6ff35b7a8d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -163,7 +163,7 @@ bool DOCConduit::pcTextChanged(TQString txtfn)
KMD5 docmd5; KMD5 docmd5;
TQFile txtfile(txtfn); TQFile txtfile(txtfn);
if (txtfile.open(IO_ReadOnly)){ if (txtfile.open(IO_ReadOnly)){
docmd5.update(*TQT_TQIODEVICE(&txtfile)); docmd5.update(txtfile);
TQString thisDigest(docmd5.hexDigest() /* .data() */); TQString thisDigest(docmd5.hexDigest() /* .data() */);
#ifdef DEBUG #ifdef DEBUG
DEBUGKPILOT<<"New digest is "<<thisDigest<<endl; DEBUGKPILOT<<"New digest is "<<thisDigest<<endl;
@ -362,7 +362,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo)
KMD5 docmd5; KMD5 docmd5;
TQFile txtfile(docconverter.txtFilename()); TQFile txtfile(docconverter.txtFilename());
if (txtfile.open(IO_ReadOnly)) { if (txtfile.open(IO_ReadOnly)) {
docmd5.update(*TQT_TQIODEVICE(&txtfile)); docmd5.update(txtfile);
TQString thisDigest(docmd5.hexDigest() /* .data() */); TQString thisDigest(docmd5.hexDigest() /* .data() */);
DOCConduitSettings::self()->config()->writeEntry(docconverter.txtFilename(), thisDigest); DOCConduitSettings::self()->config()->writeEntry(docconverter.txtFilename(), thisDigest);
DOCConduitSettings::self()->config()->sync(); DOCConduitSettings::self()->config()->sync();

@ -68,7 +68,7 @@ LogFile::LogFile() : DCOPObject("LogIface"), TQObject(), fOutfile(0L), fSyncing(
} }
fSyncing = true; 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("KPilot HotSync log, %1").arg(TQDateTime::currentDateTime().toString()))<<endl<<endl<<endl;
fLogStream<<(CSL1("Version: KPilot %1").arg(TQString::fromLatin1(KPILOT_VERSION)))<<endl; fLogStream<<(CSL1("Version: KPilot %1").arg(TQString::fromLatin1(KPILOT_VERSION)))<<endl;

Loading…
Cancel
Save