From caeff2862ae82d9a60219bc34fca06ba57635105 Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 10 Sep 2020 15:16:47 -0400 Subject: [PATCH] Remove dependency on C++17 --- scanner/metadata/taglib/taglib_parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scanner/metadata/taglib/taglib_parser.cpp b/scanner/metadata/taglib/taglib_parser.cpp index 968c2d1f3..f2ed7498e 100644 --- a/scanner/metadata/taglib/taglib_parser.cpp +++ b/scanner/metadata/taglib/taglib_parser.cpp @@ -57,9 +57,9 @@ int taglib_read(const char *filename, unsigned long id) { if (mp3File->ID3v2Tag()) { const auto &frameListMap(mp3File->ID3v2Tag()->frameListMap()); - for (const auto &[name, values] : frameListMap) { - if (!values.isEmpty()) - tags.insert(name, values.front()->toString()); + for (const auto& kv : frameListMap) { + if (!kv.second.isEmpty()) + tags.insert(kv.first, kv.second.front()->toString()); } } }