Remove dependency on C++17
This commit is contained in:
@@ -57,9 +57,9 @@ int taglib_read(const char *filename, unsigned long id) {
|
|||||||
if (mp3File->ID3v2Tag()) {
|
if (mp3File->ID3v2Tag()) {
|
||||||
const auto &frameListMap(mp3File->ID3v2Tag()->frameListMap());
|
const auto &frameListMap(mp3File->ID3v2Tag()->frameListMap());
|
||||||
|
|
||||||
for (const auto &[name, values] : frameListMap) {
|
for (const auto& kv : frameListMap) {
|
||||||
if (!values.isEmpty())
|
if (!kv.second.isEmpty())
|
||||||
tags.insert(name, values.front()->toString());
|
tags.insert(kv.first, kv.second.front()->toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user