mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
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
This commit is contained in:
parent
e83f93b2c0
commit
6a66c36a0c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user