clang-tidy: use auto

Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2023-12-21 18:11:14 -08:00
committed by Urs Fleisch
parent 6d0f0ad170
commit 1635d4d563
6 changed files with 12 additions and 12 deletions

View File

@ -501,7 +501,7 @@ bool ID3v2::Tag::setComplexProperties(const String &key, const List<VariantMap>
if(uppercaseKey == "PICTURE") {
removeFrames("APIC");
for(auto property : value) {
for(const auto &property : value) {
auto picture = new AttachedPictureFrame;
picture->setPicture(property.value("data").value<ByteVector>());
picture->setMimeType(property.value("mimeType").value<String>());
@ -514,7 +514,7 @@ bool ID3v2::Tag::setComplexProperties(const String &key, const List<VariantMap>
else if(uppercaseKey == "GENERALOBJECT") {
removeFrames("GEOB");
for(auto property : value) {
for(const auto &property : value) {
auto geob = new GeneralEncapsulatedObjectFrame;
geob->setObject(property.value("data").value<ByteVector>());
geob->setMimeType(property.value("mimeType").value<String>());