diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-05 12:06:15 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 10:48:04 +0900 |
| commit | 05330e04abbc3e21a39655fe515e58718d229d2d (patch) | |
| tree | 10b6b693f29d4d6c882b7be59fc2b5bee2a64ffd /tdefile-plugins/mhtml | |
| parent | 0900b7aa951e81a02ce679c1c5d88f09afa3749d (diff) | |
| download | tdeaddons-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')
| -rw-r--r-- | tdefile-plugins/mhtml/tdefile_mhtml.cpp | 16 | ||||
| -rw-r--r-- | tdefile-plugins/mhtml/tdefile_mhtml.h | 2 |
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); }; |
