diff options
Diffstat (limited to 'libkmime/kmime_util.cpp')
-rw-r--r-- | libkmime/kmime_util.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libkmime/kmime_util.cpp b/libkmime/kmime_util.cpp index d93c4990..1df85e61 100644 --- a/libkmime/kmime_util.cpp +++ b/libkmime/kmime_util.cpp @@ -149,20 +149,20 @@ TQString decodeRFC2047String(const TQCString &src, const char **usedCS, } beg = pos+2; end = beg; - valid = TRUE; + valid = true; // parse charset name declaredCS=""; for (i=2,pos+=2; i<maxLen && (*pos!='?'&&(ispunct(*pos)||isalnum(*pos))); i++) { declaredCS+=(*pos); pos++; } - if (*pos!='?' || i<4 || i>=maxLen) valid = FALSE; + if (*pos!='?' || i<4 || i>=maxLen) valid = false; else { // get encoding and check delimiting question marks encoding = toupper(pos[1]); if (pos[2]!='?' || (encoding!='Q' && encoding!='B')) - valid = FALSE; + valid = false; pos+=3; i+=3; } @@ -176,7 +176,7 @@ TQString decodeRFC2047String(const TQCString &src, const char **usedCS, pos++; } end = pos+2;//end now points to the first char after the encoded string - if (i>=maxLen || !*pos) valid = FALSE; + if (i>=maxLen || !*pos) valid = false; } if (valid) { |