From: Scott Wheeler Date: Fri, 16 Jun 2006 22:50:09 +0000 (+0000) Subject: Here's another easy one that helps out on ginormus strings. X-Git-Tag: v1.5~231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a66c36a0ccb1d3ec8bdc29e07738be5ffa308d4;p=taglib Here's another easy one that helps out on ginormus strings. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@552198 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/toolkit/tstringlist.cpp b/toolkit/tstringlist.cpp index f37b30bf..85a8e3cc 100644 --- a/toolkit/tstringlist.cpp +++ b/toolkit/tstringlist.cpp @@ -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; }