Inspection: Result of a postfix operator is discarded

This commit is contained in:
Urs Fleisch 2024-01-20 17:13:54 +01:00
parent 6b17aa3694
commit 710522e6e1
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -90,7 +90,7 @@ ByteVector SynchData::decode(const ByteVector &data)
*dst++ = *src++;
if(*(src - 1) == '\xff' && *src == '\x00')
src++;
++src;
}
if(src < data.end())