summaryrefslogtreecommitdiffstats
path: root/tdeioslave/imap4/rfcdecoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeioslave/imap4/rfcdecoder.cpp')
-rw-r--r--tdeioslave/imap4/rfcdecoder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeioslave/imap4/rfcdecoder.cpp b/tdeioslave/imap4/rfcdecoder.cpp
index 36111bf1..a82ebcd2 100644
--- a/tdeioslave/imap4/rfcdecoder.cpp
+++ b/tdeioslave/imap4/rfcdecoder.cpp
@@ -360,14 +360,14 @@ rfcDecoder::decodeRFC2047String (const TQString & _str, TQString & charset,
}
beg = pos + 2;
end = beg;
- valid = TRUE;
+ valid = true;
// parse charset name
for (i = 2, pos += 2;
i < maxLen && (*pos != '?' && (ispunct (*pos) || isalnum (*pos)));
i++)
pos++;
if (*pos != '?' || i < 4 || i >= maxLen)
- valid = FALSE;
+ valid = false;
else
{
charset = TQCString (beg, i - 1); // -2 + 1 for the zero
@@ -385,7 +385,7 @@ rfcDecoder::decodeRFC2047String (const TQString & _str, TQString & charset,
if (pos[2] != '?'
|| (encoding != 'Q' && encoding != 'B' && encoding != 'q'
&& encoding != 'b'))
- valid = FALSE;
+ valid = false;
pos += 3;
i += 3;
// kdDebug(7116) << "rfcDecoder::decodeRFC2047String - charset " << charset << " - language " << language << " - '" << pos << "'" << endl;
@@ -401,7 +401,7 @@ rfcDecoder::decodeRFC2047String (const TQString & _str, TQString & charset,
}
end = pos + 2; //end now points to the first char after the encoded string
if (i >= maxLen || !*pos)
- valid = FALSE;
+ valid = false;
}
if (valid)
{