This if doesn't need to be there. The encoding byte should be there even if there

is no string content.


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@572787 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2006-08-13 23:10:43 +00:00
parent 071c691a9a
commit 2f1645947a

View File

@ -120,21 +120,18 @@ ByteVector TextIdentificationFrame::renderFields() const
{
ByteVector v;
if(d->fieldList.size() > 0) {
v.append(char(d->textEncoding));
v.append(char(d->textEncoding));
for(StringList::Iterator it = d->fieldList.begin(); it != d->fieldList.end(); it++) {
for(StringList::Iterator it = d->fieldList.begin(); it != d->fieldList.end(); it++) {
// Since the field list is null delimited, if this is not the first
// element in the list, append the appropriate delimiter for this
// encoding.
// Since the field list is null delimited, if this is not the first
// element in the list, append the appropriate delimiter for this
// encoding.
if(it != d->fieldList.begin())
v.append(textDelimiter(d->textEncoding));
if(it != d->fieldList.begin())
v.append(textDelimiter(d->textEncoding));
v.append((*it).data(d->textEncoding));
}
v.append((*it).data(d->textEncoding));
}
return v;