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

List:       kde-commits
Subject:    KDE/kdepimlibs/kcal
From:       Allen Winter <winter () kde ! org>
Date:       2007-01-31 21:25:53
Message-ID: 1170278753.517346.4122.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 628897 by winterz:

better. thanks to hints from thiago and simon.


 M  +5 -5      vcalformat.cpp  


--- trunk/KDE/kdepimlibs/kcal/vcalformat.cpp #628896:628897
@@ -296,14 +296,14 @@
   QStringList tmpStrList = anEvent->categories();
   tmpStr = "";
   QString catStr;
-  for ( QStringList::Iterator its = tmpStrList.begin();
-        its != tmpStrList.end();
-        ++its ) {
+  QStringList::const_iterator its;
+  for ( its = tmpStrList.constBegin(); its != tmpStrList.constEnd(); ++its ) {
     catStr = *its;
-    if (catStr[0] == ' ')
+    if (catStr[0] == ' ') {
       tmpStr += catStr.mid(1);
-    else
+    } else {
       tmpStr += catStr;
+    }
     // this must be a ';' character as the vCalendar specification requires!
     // vcc.y has been hacked to translate the ';' to a ',' when the vcal is
     // read in.
[prev in list] [next in list] [prev in thread] [next in thread] 

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