mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 13:10:26 -04:00
Inspection: Result of a postfix operator is discarded
This commit is contained in:
parent
6b17aa3694
commit
710522e6e1
@ -241,7 +241,7 @@ void TextIdentificationFrame::parseFields(const ByteVector &data)
|
||||
// type is the same specified for this frame
|
||||
|
||||
unsigned short firstBom = 0;
|
||||
for(auto it = l.begin(); it != l.end(); it++) {
|
||||
for(auto it = l.begin(); it != l.end(); ++it) {
|
||||
if(!it->isEmpty() || (it == l.begin() && frameID() == "TXXX")) {
|
||||
if(d->textEncoding == String::Latin1) {
|
||||
d->fieldList.append(Tag::latin1StringHandler()->parse(*it));
|
||||
@ -278,7 +278,7 @@ ByteVector TextIdentificationFrame::renderFields() const
|
||||
|
||||
v.append(static_cast<char>(encoding));
|
||||
|
||||
for(auto it = d->fieldList.cbegin(); it != d->fieldList.cend(); it++) {
|
||||
for(auto it = d->fieldList.cbegin(); it != d->fieldList.cend(); ++it) {
|
||||
|
||||
// Since the field list is null delimited, if this is not the first
|
||||
// element in the list, append the appropriate delimiter for this
|
||||
|
@ -90,7 +90,7 @@ ByteVector SynchData::decode(const ByteVector &data)
|
||||
*dst++ = *src++;
|
||||
|
||||
if(*(src - 1) == '\xff' && *src == '\x00')
|
||||
src++;
|
||||
++src;
|
||||
}
|
||||
|
||||
if(src < data.end())
|
||||
|
Loading…
Reference in New Issue
Block a user