Fix potential fallthrough

This commit is contained in:
Stephen F. Booth
2023-12-18 17:29:39 +01:00
committed by Urs Fleisch
parent 4775c83d8d
commit 98a9530d23
+3 -2
View File
@@ -248,8 +248,9 @@ int ASF::Attribute::dataSize() const
case UnicodeType:
return d->stringValue.size() * 2 + 2;
case BytesType:
if(d->pictureValue.isValid())
if(d->pictureValue.isValid()) {
return d->pictureValue.dataSize();
}
break;
case GuidType:
return d->byteVectorValue.size();
@@ -290,8 +291,8 @@ ByteVector ASF::Attribute::render(const String &name, int kind) const
case BytesType:
if(d->pictureValue.isValid()) {
data.append(d->pictureValue.render());
break;
}
break;
case GuidType:
data.append(d->byteVectorValue);
break;