summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/mhtml/tdefile_mhtml.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-05 12:06:15 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 10:48:04 +0900
commit05330e04abbc3e21a39655fe515e58718d229d2d (patch)
tree10b6b693f29d4d6c882b7be59fc2b5bee2a64ffd /tdefile-plugins/mhtml/tdefile_mhtml.cpp
parent0900b7aa951e81a02ce679c1c5d88f09afa3749d (diff)
downloadtdeaddons-05330e04abbc3e21a39655fe515e58718d229d2d.tar.gz
tdeaddons-05330e04abbc3e21a39655fe515e58718d229d2d.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a40b1ca8095d92cbe5876207558663dcab6d1de2)
Diffstat (limited to 'tdefile-plugins/mhtml/tdefile_mhtml.cpp')
-rw-r--r--tdefile-plugins/mhtml/tdefile_mhtml.cpp16
1 files changed, 8 insertions, 8 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));