[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/libkmime
From:       Laurent Montel <montel () kde ! org>
Date:       2004-10-18 13:47:08
Message-ID: 20041018134708.9B6DE16C65 () office ! kde ! org
[Download RAW message or body]

CVS commit by mlaurent: 

Fix cache qstring length


  M +4 -2      kmime_content.cpp   1.7


--- kdepim/libkmime/kmime_content.cpp  #1.6:1.7
@@ -422,5 +422,6 @@ void Content::decodedText(QString &s, bo
   if (trimText && removeTrailingNewlines) {
     int i;
-    for (i=s.length()-1; i>=0; i--)
+        unsigned int strLength(s.length());
+    for (i=strLength-1; i>=0; i--)
       if (!s[i].isSpace())
         break;
@@ -448,5 +449,6 @@ void Content::decodedText(QStringList &l
   if (trimText && removeTrailingNewlines) {
     int i;
-    for (i=unicode.length()-1; i>=0; i--)
+        unsigned int unicodeLength(unicode.length());
+    for (i=unicodeLength-1; i>=0; i--)
       if (!unicode[i].isSpace())
         break;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic