mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 09:08:09 -04:00
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:
parent
071c691a9a
commit
2f1645947a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user