Bug 715938 - Remove last 2 references to nsCRT::strlen() in Imap code. f=sgautherie r=dbienvenu.
authorShriram Kunchanapalli <kshriram18@gmail.com>
Sat, 25 Feb 2012 14:32:03 +0530
changeset 10941 3a940f4e627915841d26c15dc5e8d7c17b1c3e15
parent 10940 7ad89ff81d2ceba5ce8992de4eb85b69b97e8530
child 10942 ea066a252af3fce6322bd29a77a20c41fab0fa09
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbienvenu
bugs715938
Bug 715938 - Remove last 2 references to nsCRT::strlen() in Imap code. f=sgautherie r=dbienvenu.
mailnews/imap/src/nsImapServerResponseParser.cpp
--- a/mailnews/imap/src/nsImapServerResponseParser.cpp
+++ b/mailnews/imap/src/nsImapServerResponseParser.cpp
@@ -2584,17 +2584,17 @@ void nsImapServerResponseParser::mime_da
 // This is because we are still in the process of generating enough
 // information from the server (such as the MIME header's size) so that
 // we can construct the final output stream.
 void nsImapServerResponseParser::mime_header_data()
 {
   char *partNumber = PL_strdup(fNextToken);
   if (partNumber)
   {
-    char *start = partNumber+5, *end = partNumber+5;	// 5 == nsCRT::strlen("BODY[")
+    char *start = partNumber + 5, *end = partNumber + 5; // 5 == strlen("BODY[")
     while (ContinueParse() && end && *end != 'M' && *end != 'm')
     {
       end++;
     }
     if (end && (*end == 'M' || *end == 'm'))
     {
       *(end-1) = 0;
       AdvanceToNextToken();
@@ -3131,17 +3131,16 @@ bool nsImapServerResponseParser::msg_fet
     PR_LOG(IMAP, PR_LOG_ALWAYS, ("PARSER: CR/LF fell on chunk boundary."));
   
   if (ContinueParse())
   {
     if (charsReadSoFar > numberOfCharsInThisChunk)
     {
       // move the lexical analyzer state to the end of this message because this message
       // fetch ends in the middle of this line.
-      //fCurrentTokenPlaceHolder = fLineOfTokens + nsCRT::strlen(fCurrentLine) - (charsReadSoFar - numberOfCharsInThisChunk);
       AdvanceTokenizerStartingPoint(strlen(fCurrentLine) - (charsReadSoFar - numberOfCharsInThisChunk));
       AdvanceToNextToken();
     }
     else
     {
       skip_to_CRLF();
       AdvanceToNextToken();
     }