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

@ -272,8 +272,8 @@ bool Ogg::XiphComment::setComplexProperties(const String &key, const List<Varian
if(uppercaseKey == "PICTURE") {
removeAllPictures();
for(auto property : value) {
FLAC::Picture *picture = new FLAC::Picture;
for(const auto &property : value) {
auto picture = new FLAC::Picture;
picture->setData(property.value("data").value<ByteVector>());
picture->setMimeType(property.value("mimeType").value<String>());
picture->setDescription(property.value("description").value<String>());