mirror of
https://github.com/taglib/taglib.git
synced 2026-04-12 17:09:50 -04:00
clang-tidy: use auto
Found with modernize-use-auto Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@ -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>());
|
||||
|
||||
Reference in New Issue
Block a user