summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/mhtml
diff options
context:
space:
mode:
Diffstat (limited to 'tdefile-plugins/mhtml')
-rw-r--r--tdefile-plugins/mhtml/tdefile_mhtml.cpp16
-rw-r--r--tdefile-plugins/mhtml/tdefile_mhtml.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/tdefile-plugins/mhtml/tdefile_mhtml.cpp b/tdefile-plugins/mhtml/tdefile_mhtml.cpp
index fdf2ffe..69d3b55 100644
--- a/tdefile-plugins/mhtml/tdefile_mhtml.cpp
+++ b/tdefile-plugins/mhtml/tdefile_mhtml.cpp
@@ -71,27 +71,27 @@ bool mhtmlPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
if(l.startsWith("From: ")) {
mSender=l.mid(6);
nFieldsFound |= 1;
- canUnfold=TRUE;
+ canUnfold=true;
} else if(l.startsWith("To: ")) {
mRecipient=l.mid(4);
nFieldsFound |= 2;
- canUnfold=TRUE;
+ canUnfold=true;
} else if(l.startsWith("Subject: ")) {
mSubject=l.mid(9);
nFieldsFound |= 4;
- canUnfold=TRUE;
+ canUnfold=true;
} else if(l.startsWith("Cc: ")) {
mCopyTo=l.mid(4);
nFieldsFound |= 8;
- canUnfold=TRUE;
+ canUnfold=true;
} else if(l.startsWith("Bcc: ")) {
mBlindCopyTo=l.mid(5);
nFieldsFound |= 16;
- canUnfold=TRUE;
+ canUnfold=true;
} else if(l.startsWith("Date: ")) {
mDate=l.mid(6);
nFieldsFound |= 32;
- canUnfold=FALSE;
+ canUnfold=false;
}else if(l.startsWith(" ") || l.startsWith("\t")){
// unfold field
if(canUnfold){
@@ -102,7 +102,7 @@ bool mhtmlPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
else if(nFieldsFound & 2) mRecipient=mRecipient+" "+tmp;
else if(nFieldsFound & 1) mSender=mSender+" "+tmp;
}
- }else canUnfold=FALSE;
+ }else canUnfold=false;
// break out of the loop once the six fields have been found
if ( nFieldsFound == 32+16+8+4+2+1 )
break;
@@ -110,7 +110,7 @@ bool mhtmlPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
}
f.close();
KFileMetaInfoGroup group = appendGroup(info, "mhtmlInfo");
- appendItem(group, "Subject", decodeRFC2047Phrase(mSubject,FALSE));
+ appendItem(group, "Subject", decodeRFC2047Phrase(mSubject,false));
appendItem(group, "Sender", decodeRFC2047Phrase(mSender));
appendItem(group, "Recipient", decodeRFC2047Phrase(mRecipient));
appendItem(group, "CopyTo", decodeRFC2047Phrase(mCopyTo));
diff --git a/tdefile-plugins/mhtml/tdefile_mhtml.h b/tdefile-plugins/mhtml/tdefile_mhtml.h
index 2ec562b..5be30da 100644
--- a/tdefile-plugins/mhtml/tdefile_mhtml.h
+++ b/tdefile-plugins/mhtml/tdefile_mhtml.h
@@ -38,7 +38,7 @@ public:
mhtmlPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
private:
- TQString decodeRFC2047Phrase(const TQString &msg, bool removeLessGreater=TRUE);
+ TQString decodeRFC2047Phrase(const TQString &msg, bool removeLessGreater=true);
TQString decodeRFC2047String(const TQString &msg);
};