]> granicus.if.org Git - taglib/commitdiff
Here's another easy one that helps out on ginormus strings.
authorScott Wheeler <wheeler@kde.org>
Fri, 16 Jun 2006 22:50:09 +0000 (22:50 +0000)
committerScott Wheeler <wheeler@kde.org>
Fri, 16 Jun 2006 22:50:09 +0000 (22:50 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@552198 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

toolkit/tstringlist.cpp

index f37b30bf81caaab2fe8adf1d06dd59ecc6184dbc..85a8e3cca9111d11ca76c637c15b0095783111bd 100644 (file)
@@ -84,11 +84,12 @@ String StringList::toString(const String &separator) const
   String s;
 
   ConstIterator it = begin();
+  ConstIterator itEnd = end();
 
-  while(it != end()) {
+  while(it != itEnd) {
     s += *it;
     it++;
-    if(it != end())
+    if(it != itEnd)
       s += separator;
   }